Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
sismiop-models
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 01a03057
authored
Sep 10, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed hitung denda di Kota Bekasi
1 parent
e860b936
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
sismiop/services/bekasi_kota.py
sismiop/services/bekasi_kota.py
View file @
01a0305
...
...
@@ -33,11 +33,15 @@ AKHIR_DISC_DENDA = date(2024, 9, 30)
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
if
jatuh_tempo
>=
tgl_hitung
:
return
0
,
0
jatuh_tempo_
januari
=
date
(
2024
,
1
,
jatuh_tempo
.
day
)
jatuh_tempo_
batas
=
date
(
2024
,
1
,
jatuh_tempo
.
day
)
bulan2persen
=
bulan_tunggakan_berdasarkan_tgl
(
jatuh_tempo
,
jatuh_tempo_januari
)
jatuh_tempo
,
jatuh_tempo_batas
)
if
bulan2persen
:
bulan1persen
=
bulan_tunggakan_berdasarkan_tgl
(
jatuh_tempo_januari
,
tgl_hitung
)
jatuh_tempo_batas
,
tgl_hitung
)
else
:
bulan1persen
=
bulan_tunggakan_berdasarkan_tgl
(
jatuh_tempo
,
tgl_hitung
)
persen
=
bulan2persen
*
2
+
bulan1persen
if
persen
>
48
:
persen
=
48
...
...
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