Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-pad-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 56b8d89b
authored
Jul 29, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed Kota Tangerang pada max denda
1 parent
2b5c6936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
opensipkd/pad/services/tangerang_kota.py
opensipkd/pad/services/tangerang_kota.py
View file @
56b8d89
...
...
@@ -116,20 +116,23 @@ class Inquiry(BaseInquiry):
tgl_bayar
<=
pay_skpdkb_akhir
)
or
(
thnskp
==
2021
and
tglskp
>=
masadari_office_2020
and
tglskp
<=
masasd_office_2020
and
usahaid
==
reklame_id
and
kini
>=
pay_awal
and
self
.
tgl_bayar
<=
pay_akhir
)
or
(
tgl_bayar
>=
pay_awal
and
tgl_bayar
<=
pay_akhir
)
or
(
thnskp
>=
2020
and
tglskp
>=
masadari_office_sebelum_2020
and
tglskp
<=
masasd_office_sebelum_2020
and
usahaid
==
reklame_id
and
self
.
tgl_bayar
>=
pay_awal
and
self
.
tgl_bayar
<=
pay_akhir
)
or
(
usahaid
==
reklame_id
and
tgl_bayar
>=
pay_awal
and
tgl_bayar
<=
pay_akhir
)
or
(
masa
>=
masadari_self_2020
and
masa
<=
masasd_self_2020
and
usahaid
==
airtanah_id
and
self
.
tgl_bayar
>=
pay_awal
and
self
.
tgl_bayar
<=
pay_akhir
):
usahaid
==
airtanah_id
and
tgl_bayar
>=
pay_awal
and
tgl_bayar
<=
pay_akhir
):
self
.
denda
=
round_up
(
self
.
invoice
.
denda
)
self
.
bln_tunggakan
=
None
else
:
self
.
bln_tunggakan
,
denda
=
self
.
hitung_denda_waktu
()
self
.
denda
=
round_up
(
self
.
invoice
.
bunga
+
self
.
invoice
.
denda
+
denda
)
max_denda
=
round_up
(
0.48
*
self
.
tagihan
)
if
self
.
denda
>
max_denda
:
self
.
denda
=
max_denda
def
hitung_denda_waktu
(
self
):
jatuh_tempo
=
self
.
invoice
.
jatuh_tempo
...
...
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