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 9cab1ca6
authored
Sep 05, 2024
by
iwan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda di Kabupaten Kuningan
1 parent
43daf2a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
3 deletions
CHANGES.txt
opensipkd/pad/services/kuningan.py
opensipkd/pad/services/subang.py
pyproject.toml
CHANGES.txt
View file @
9cab1ca
0.5.13 2024-09-05
-----------------
- Kabupaten Kuningan discount denda 100% periode 5 - 30 September
0.5.12 2024-08-29
0.5.12 2024-08-29
-----------------
-----------------
- Kota Tangerang Selatan discount denda periode 1 September - 28 Desember
- Kota Tangerang Selatan discount denda periode 1 September - 28 Desember
...
...
opensipkd/pad/services/kuningan.py
View file @
9cab1ca
from
datetime
import
date
from
.subang
import
(
from
.subang
import
(
INVOICE_ID
,
# Dipakai payment-report
INVOICE_ID
,
# Dipakai payment-report
Inquiry
,
Inquiry
as
BaseInquiry
,
Reversal
,
Reversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
AvailableInvoice
as
BaseAvailableInvoice
,
)
)
...
@@ -8,6 +9,16 @@ from .subang import (
...
@@ -8,6 +9,16 @@ from .subang import (
PREFIX
=
'3210'
PREFIX
=
'3210'
AWAL_DISC
=
date
(
2024
,
9
,
5
)
AKHIR_DISC
=
date
(
2024
,
9
,
30
)
class
Inquiry
(
BaseInquiry
):
def
get_discount_denda
(
self
):
# Override
if
AWAL_DISC
<=
self
.
tgl_bayar
.
date
()
<=
AKHIR_DISC
:
return
self
.
denda
return
0
class
AvailableInvoice
(
BaseAvailableInvoice
):
class
AvailableInvoice
(
BaseAvailableInvoice
):
def
get_invoice_id
(
self
,
row
):
# Override
def
get_invoice_id
(
self
,
row
):
# Override
...
...
opensipkd/pad/services/subang.py
View file @
9cab1ca
...
@@ -5,7 +5,7 @@ from .banjar import (
...
@@ -5,7 +5,7 @@ from .banjar import (
Reversal
as
BaseReversal
,
Reversal
as
BaseReversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
AvailableInvoice
as
BaseAvailableInvoice
,
)
)
from
opensipkd.hitung
import
hitung_denda
PREFIX
=
'3215'
PREFIX
=
'3215'
INVOICE_ID
=
[(
'Prefix'
,
4
,
'N'
)]
+
INVOICE_ID
INVOICE_ID
=
[(
'Prefix'
,
4
,
'N'
)]
+
INVOICE_ID
...
@@ -14,6 +14,22 @@ INVOICE_ID = [('Prefix', 4, 'N')] + INVOICE_ID
...
@@ -14,6 +14,22 @@ INVOICE_ID = [('Prefix', 4, 'N')] + INVOICE_ID
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
invoice_id_structure
=
INVOICE_ID
invoice_id_structure
=
INVOICE_ID
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
if
self
.
get_type_name
()
.
strip
()
in
(
'SSPD'
,
'SELF'
):
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_kohir_model
(
self
):
def
get_kohir_model
(
self
):
return
Kohir
return
Kohir
...
...
pyproject.toml
View file @
9cab1ca
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
[project]
name
=
'opensipkd-pad-models'
name
=
'opensipkd-pad-models'
version
=
'
0.5.1
2
'
version
=
'
0.5.1
3
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.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