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 bd23c557
authored
Jan 03, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tahun Terbit 2024 ke atas dendanya 1%
1 parent
2bd65cc6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
CHANGES.txt
opensipkd/pad/services/default.py
CHANGES.txt
View file @
bd23c55
0.5 2024-01-03
--------------
- Tahun Terbit 2024 ke atas dendanya 1%
0.4.13 2023-09-05
-----------------
- Discount Kabupaten Sukabumi
...
...
opensipkd/pad/services/default.py
View file @
bd23c55
...
...
@@ -59,6 +59,11 @@ class BaseInquiry:
self
.
invoice
=
self
.
get_invoice
()
if
not
self
.
invoice
:
return
tgl_kohir
=
self
.
get_tgl_kohir
()
if
tgl_kohir
:
self
.
tahun_terbit
=
tgl_kohir
.
year
else
:
self
.
tahun_terbit
=
self
.
invoice
.
masadari
.
year
if
not
self
.
is_available
():
self
.
invoice
=
None
...
...
@@ -312,9 +317,12 @@ class Inquiry(BaseInquiry):
self
.
denda
-=
self
.
discount_denda
def
hitung_denda_waktu
(
self
):
if
self
.
tahun_terbit
>
2023
:
persen_denda
=
1
else
:
persen_denda
=
self
.
conf
[
'persen_denda'
]
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
self
.
conf
[
'persen_denda'
],
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
def
get_discount_denda
(
self
):
...
...
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