Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Taufik Yulianto
/
esipkd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 063b1575
authored
Dec 20, 2023
by
taufikyu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaiki model
1 parent
8738d397
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
esipkd/models/bjb_qris.py
esipkd/models/bjb_va.py
esipkd/models/bjb_qris.py
View file @
063b157
...
@@ -134,6 +134,8 @@ class BJBQRIS(KodeModel, Base):
...
@@ -134,6 +134,8 @@ class BJBQRIS(KodeModel, Base):
expdate
=
datetime_from_str
(
values
[
'expired_date'
])
expdate
=
datetime_from_str
(
values
[
'expired_date'
])
if
expdate
>
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)):
if
expdate
>
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)):
expdate
=
ymdhms
(
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)))
expdate
=
ymdhms
(
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)))
else
:
expdate
=
values
[
'expired_date'
]
data
=
dict
(
data
=
dict
(
client_type
=
values
[
'client_type'
],
client_type
=
values
[
'client_type'
],
invoice_no
=
str
(
values
[
'invoice_no'
]),
invoice_no
=
str
(
values
[
'invoice_no'
]),
...
@@ -142,7 +144,7 @@ class BJBQRIS(KodeModel, Base):
...
@@ -142,7 +144,7 @@ class BJBQRIS(KodeModel, Base):
customer_name
=
str
(
values
[
'customer_name'
]),
customer_name
=
str
(
values
[
'customer_name'
]),
customer_email
=
str
(
values
[
'customer_email'
]),
customer_email
=
str
(
values
[
'customer_email'
]),
customer_phone
=
str
(
values
[
'customer_phone'
]),
customer_phone
=
str
(
values
[
'customer_phone'
]),
expired_date
=
str
(
values
[
'expired_date'
]
),
expired_date
=
str
(
expdate
),
amount
=
str
(
values
[
'amount'
])
amount
=
str
(
values
[
'amount'
])
)
)
...
...
esipkd/models/bjb_va.py
View file @
063b157
...
@@ -121,6 +121,8 @@ class BJBVA(KodeModel, Base):
...
@@ -121,6 +121,8 @@ class BJBVA(KodeModel, Base):
expdate
=
datetime_from_str
(
values
[
'expired_date'
])
expdate
=
datetime_from_str
(
values
[
'expired_date'
])
if
expdate
>
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)):
if
expdate
>
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)):
expdate
=
ymdhms
(
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)))
expdate
=
ymdhms
(
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)))
else
:
expdate
=
values
[
'expired_date'
]
data
=
dict
(
data
=
dict
(
client_type
=
values
[
'client_type'
],
client_type
=
values
[
'client_type'
],
invoice_no
=
values
[
'invoice_no'
],
invoice_no
=
values
[
'invoice_no'
],
...
@@ -129,7 +131,7 @@ class BJBVA(KodeModel, Base):
...
@@ -129,7 +131,7 @@ class BJBVA(KodeModel, Base):
customer_name
=
values
[
'customer_name'
],
customer_name
=
values
[
'customer_name'
],
customer_email
=
values
[
'customer_email'
],
customer_email
=
values
[
'customer_email'
],
customer_phone
=
values
[
'customer_phone'
],
customer_phone
=
values
[
'customer_phone'
],
expired_date
=
values
[
'expired_date'
]
,
expired_date
=
expdate
,
amount
=
str
(
values
[
'amount'
])
amount
=
str
(
values
[
'amount'
])
)
)
...
@@ -155,12 +157,14 @@ class BJBVA(KodeModel, Base):
...
@@ -155,12 +157,14 @@ class BJBVA(KodeModel, Base):
expdate
=
datetime_from_str
(
values
[
'expired_date'
])
expdate
=
datetime_from_str
(
values
[
'expired_date'
])
if
expdate
>
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)):
if
expdate
>
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)):
expdate
=
ymdhms
(
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)))
expdate
=
ymdhms
(
datetime
.
combine
(
date
.
today
(),
time
(
20
,
59
,
59
)))
else
:
expdate
=
values
[
'expired_date'
]
data
=
dict
(
data
=
dict
(
va_number
=
values
[
'va_number'
],
va_number
=
values
[
'va_number'
],
invoice_no
=
values
[
'invoice_no'
],
invoice_no
=
values
[
'invoice_no'
],
product_code
=
values
[
'product_code'
],
product_code
=
values
[
'product_code'
],
amount
=
str
(
values
[
'amount'
]),
amount
=
str
(
values
[
'amount'
]),
expired_date
=
str
(
values
[
'expired_date'
]
),
expired_date
=
str
(
expdate
),
customer_name
=
str
(
values
[
'customer_name'
]),
customer_name
=
str
(
values
[
'customer_name'
]),
customer_email
=
str
(
values
[
'customer_email'
]),
customer_email
=
str
(
values
[
'customer_email'
]),
customer_phone
=
str
(
values
[
'customer_phone'
]),
customer_phone
=
str
(
values
[
'customer_phone'
]),
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment