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 68206f12
authored
Jan 31, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Nomor bayar Kabupaten Magelang berawalan 08
1 parent
868ecd9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
opensipkd/pad/services/magelang_kab.py
opensipkd/pad/services/magelang_kab.py
View file @
68206f1
...
...
@@ -14,11 +14,20 @@ from ..models.tangerang_kab import (
)
PREFIX
=
'08'
INVOICE_ID
=
[
[
'Prefix'
,
2
,
'N'
],
[
'Tahun'
,
4
,
'N'
],
[
'SptNo'
,
6
,
'N'
],
]
AWAL_MASA_DENDA_1_PERSEN
=
date
(
2024
,
10
,
1
)
AWAL_BAYAR_DENDA_1_PERSEN
=
date
(
2025
,
2
,
1
)
class
Inquiry
(
BaseInquiry
):
invoice_id_structure
=
INVOICE_ID
def
hitung_denda_waktu
(
self
):
# Override
tgl_terbit
=
self
.
get_jatuh_tempo
()
if
tgl_terbit
>=
AWAL_MASA_DENDA_1_PERSEN
and
\
...
...
@@ -38,6 +47,8 @@ class Inquiry(BaseInquiry):
class
Reversal
(
BaseReversal
):
invoice_id_structure
=
INVOICE_ID
def
get_kohir_model
(
self
):
# Override
return
Kohir
...
...
@@ -46,5 +57,12 @@ class Reversal(BaseReversal):
class
AvailableInvoice
(
BaseAvailableInvoice
):
invoice_id_structure
=
INVOICE_ID
def
get_inquiry_class
(
self
):
# Override
return
Inquiry
def
get_invoice_id
(
self
,
row
):
# Override
invoice_id
=
super
()
.
get_invoice_id
(
row
)
invoice_id
[
'Prefix'
]
=
PREFIX
return
invoice_id
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