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 5e707b22
authored
Jun 27, 2022
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update server
1 parent
6e056be1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
esipkd/models/rpc.py
esipkd/views/bjb_va.py
esipkd/models/rpc.py
View file @
5e707b2
...
@@ -30,6 +30,12 @@ import base64
...
@@ -30,6 +30,12 @@ import base64
import
hashlib
import
hashlib
import
hmac
import
hmac
import
sys
import
sys
from
random
import
choice
from
string
import
(
ascii_uppercase
,
ascii_lowercase
,
digits
,
)
class
DepartemenRoute
(
KodeModel
,
Base
):
class
DepartemenRoute
(
KodeModel
,
Base
):
__tablename__
=
'departemen_route'
__tablename__
=
'departemen_route'
...
@@ -307,4 +313,4 @@ def clear_null_value(values):
...
@@ -307,4 +313,4 @@ def clear_null_value(values):
return
values
return
values
def
ymd
(
tgl
):
def
ymd
(
tgl
):
return
tgl
.
strftime
(
'
%
Y-
%
m-
%
d'
)
\ No newline at end of file
\ No newline at end of file
return
tgl
.
strftime
(
'
%
Y-
%
m-
%
d'
)
esipkd/views/bjb_va.py
View file @
5e707b2
...
@@ -33,9 +33,9 @@ from sqlalchemy import Integer
...
@@ -33,9 +33,9 @@ from sqlalchemy import Integer
def
rpc_params
():
def
rpc_params
():
parameter
=
dict
(
parameter
=
dict
(
bjbva_url
=
get_settings
()[
'bjbva_url'
]
and
get_settings
()[
'bjbva_url'
]
.
value
.
strip
(
'/'
)
or
''
,
bjbva_url
=
get_settings
()[
'bjbva_url'
]
and
get_settings
()[
'bjbva_url'
]
.
strip
(
'/'
)
or
''
,
bjbva_user
=
get_settings
()[
'bjbva_user'
]
and
get_settings
()[
'bjbva_user'
]
.
value
.
strip
()
or
''
,
bjbva_user
=
get_settings
()[
'bjbva_user'
]
and
get_settings
()[
'bjbva_user'
]
.
strip
()
or
''
,
bjbva_key
=
get_settings
()[
'bjbva_key'
]
and
get_settings
()[
'bjbva_key'
]
.
value
.
strip
()
or
''
bjbva_key
=
get_settings
()[
'bjbva_key'
]
and
get_settings
()[
'bjbva_key'
]
.
strip
()
or
''
)
)
return
parameter
return
parameter
...
@@ -553,4 +553,4 @@ def q_inv(kode):
...
@@ -553,4 +553,4 @@ def q_inv(kode):
def
calculate_tagihan
(
values
):
def
calculate_tagihan
(
values
):
pokok
=
int
(
values
[
'pokok'
])
pokok
=
int
(
values
[
'pokok'
])
denda
=
hitung_bunga
(
pokok
,
values
[
'jatuh_tempo'
])
denda
=
hitung_bunga
(
pokok
,
values
[
'jatuh_tempo'
])
return
pokok
,
denda
\ No newline at end of file
\ No newline at end of file
return
pokok
,
denda
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