Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-bphtb-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 be903c17
authored
Jan 15, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Di Lebak jenis kurang bayar tahun 2024 ke atas didenda 1%
1 parent
db2d1095
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
CHANGES.txt
opensipkd/bphtb/services/lebak.py
CHANGES.txt
View file @
be903c1
0.4.7 2024-01-15
----------------
- Di Lebak jenis kurang bayar tahun 2024 ke atas didenda 1%
0.4.6 2023-08-14
0.4.6 2023-08-14
----------------
----------------
- Tambah Kota Serang
- Tambah Kota Serang
...
...
opensipkd/bphtb/services/lebak.py
0 → 100644
View file @
be903c1
from
datetime
import
datetime
from
opensipkd.hitung
import
(
hitung_denda
,
round_up
,
)
from
.default
import
(
Inquiry
as
BaseInquiry
,
Reversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
)
from
.default.structure
import
KODE_KURANG_BAYAR
class
Inquiry
(
BaseInquiry
):
def
hitung_denda
(
self
):
# Override
if
self
.
tahun
>
2023
and
self
.
kode
in
KODE_KURANG_BAYAR
:
persen_denda
=
1
else
:
persen_denda
=
self
.
persen_denda
if
isinstance
(
self
.
tgl_bayar
,
datetime
):
tgl_bayar
=
self
.
tgl_bayar
.
date
()
else
:
tgl_bayar
=
self
.
tgl_bayar
self
.
bln_tunggakan
,
denda
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
tgl_jatuh_tempo
,
persen_denda
,
tgl_bayar
)
self
.
denda
=
round_up
(
denda
)
class
AvailableInvoice
(
BaseAvailableInvoice
):
inquiry_cls
=
Inquiry
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