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 37efb523
authored
Jul 28, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kota Serang discount denda 100% periode 1 Agustus - 31 Agustus 2024
1 parent
7f4692c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
CHANGES.txt
opensipkd/pad/services/serang_kota.py
CHANGES.txt
View file @
37efb52
0.5.9 2024-07-28
----------------
- Kota Serang discount denda 100% periode 1 Agustus - 31 Agustus 2024.
0.5.8 2024-05-15
----------------
- Kabupaten Tangerang menerapkan persen denda ganda: jatuh tempo sebelum April
...
...
opensipkd/pad/services/serang_kota.py
View file @
37efb52
from
datetime
import
date
from
.tangerang_kab
import
(
Inquiry
as
BaseInquiry
,
Reversal
,
...
...
@@ -6,6 +7,10 @@ from .tangerang_kab import (
from
.tangsel
import
hitung_denda
AWAL_DISC
=
date
(
2024
,
8
,
1
)
AKHIR_DISC
=
date
(
2024
,
8
,
31
)
class
Inquiry
(
BaseInquiry
):
def
get_discount_denda
(
self
):
# Override
return
0
...
...
@@ -23,3 +28,8 @@ class Inquiry(BaseInquiry):
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
def
get_discount_denda
(
self
):
# Override
if
AWAL_DISC
<=
self
.
tgl_bayar
.
date
()
<=
AKHIR_DISC
:
return
self
.
denda
return
0
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