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 e4f0d1ae
authored
Feb 15, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah Kota Bogor
1 parent
a67bc010
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletions
CHANGES.txt
opensipkd/pad/services/bogor_kota.py
opensipkd/pad/services/tangerang_kab.py
CHANGES.txt
View file @
e4f0d1a
0.5.4 2024-02-15
----------------
- Tambah Kota Bogor
0.5.3 2024-02-05
----------------
- Kabupaten Cirebon menggunakan PAD versi 2
...
...
opensipkd/pad/services/bogor_kota.py
0 → 100644
View file @
e4f0d1a
from
.tangerang_kab
import
(
Inquiry
as
BaseInquiry
,
Reversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
)
from
opensipkd.hitung
import
hitung_denda
class
Inquiry
(
BaseInquiry
):
def
hitung_denda_waktu
(
self
):
# Override
tgl_kohir
=
self
.
get_tgl_kohir
()
if
tgl_kohir
:
tahun_terbit
=
tgl_kohir
.
year
else
:
tahun_terbit
=
self
.
invoice
.
masadari
.
year
if
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
,
persen_denda
,
self
.
tgl_bayar
.
date
())
def
get_discount_denda
(
self
):
# Override
return
0
class
AvailableInvoice
(
BaseAvailableInvoice
):
def
get_inquiry_class
(
self
):
# Override
return
Inquiry
opensipkd/pad/services/tangerang_kab.py
View file @
e4f0d1a
...
...
@@ -14,7 +14,7 @@ from ..models.tangerang_kab import (
)
from
.default
import
(
Inquiry
as
BaseInquiry
,
Reversal
,
Reversal
as
BaseReversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
)
...
...
@@ -86,6 +86,11 @@ class Inquiry(BaseInquiry):
return
Payment
class
Reversal
(
BaseReversal
):
def
get_payment_model
(
self
):
# Override
return
Payment
class
AvailableInvoice
(
BaseAvailableInvoice
):
def
get_inquiry_class
(
self
):
# Override
return
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