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 8be0d74a
authored
Jun 02, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kota Sukabumi
1 parent
a344b4a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
1 deletions
CHANGES.txt
opensipkd/pad/services/sukabumi_kota.py
pyproject.toml
CHANGES.txt
View file @
8be0d74
0.6.4 2025-06-02
----------------
- Discount denda Kota Sukabumi
0.6.3 2025-03-11
----------------
- Nilai pembayaran yang sesuai dengan pokok + denda (selain opsen) maka akan
...
...
opensipkd/pad/services/sukabumi_kota.py
0 → 100644
View file @
8be0d74
from
datetime
import
date
from
..models.subang
import
Kohir
from
.default
import
INVOICE_ID
from
.banjar
import
(
Inquiry
as
BaseInquiry
,
Reversal
as
BaseReversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
)
PREFIX
=
'3272'
INVOICE_ID
=
[
(
'Prefix'
,
4
,
'N'
),
(
'Tahun'
,
4
,
'N'
),
(
'SptNo'
,
5
,
'N'
),
]
AWAL_DISC
=
date
(
2025
,
6
,
1
)
AKHIR_DISC
=
date
(
2025
,
9
,
30
)
class
Inquiry
(
BaseInquiry
):
invoice_id_structure
=
INVOICE_ID
def
get_kohir_model
(
self
):
# Override
return
Kohir
def
get_discount_denda
(
self
):
# Override
self
.
notes
=
[]
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
not
(
AWAL_DISC
<=
tgl_bayar
<=
AKHIR_DISC
):
return
0
,
0
self
.
notes
.
append
(
f
'{AWAL_DISC} <= tgl bayar {tgl_bayar} <= {AKHIR_DISC}'
)
return
self
.
denda_pokok
,
self
.
opsen_denda
class
Reversal
(
BaseReversal
):
invoice_id_structure
=
INVOICE_ID
def
get_kohir_model
(
self
):
# Override
return
Kohir
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
pyproject.toml
View file @
8be0d74
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'opensipkd-pad-models'
version
=
'
0.6.
3
'
version
=
'
0.6.
4
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
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