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 c0d3de24
authored
Feb 06, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah Opsen Kabupaten Cirebon
1 parent
1a1ad3af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
opensipkd/pad/services/cirebon_kab.py
opensipkd/pad/services/cirebon_kab.py
View file @
c0d3de2
...
@@ -25,17 +25,14 @@ AKHIR_DISC = date(2025, 12, 31)
...
@@ -25,17 +25,14 @@ AKHIR_DISC = date(2025, 12, 31)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
invoice_id_structure
=
INVOICE_ID
invoice_id_structure
=
INVOICE_ID
def
hitung_denda_waktu
(
self
):
# Override
def
get_persen_denda
(
self
):
# Override
tahun_terbit
=
self
.
get_jatuh_tempo
()
.
year
tahun_terbit
=
self
.
get_jatuh_tempo
()
.
year
tgl_bayar
=
self
.
tgl_bayar
.
date
()
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
tahun_terbit
>
2023
:
if
tahun_terbit
>
2023
:
persen_denda
=
1
return
1
elif
tgl_bayar
<=
AKHIR_JULI
:
if
tgl_bayar
<=
AKHIR_JULI
:
persen_denda
=
2
return
2
else
:
return
1
persen_denda
=
1
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
tgl_bayar
)
def
get_discount_denda
(
self
):
# Override
def
get_discount_denda
(
self
):
# Override
tgl_bayar
=
self
.
tgl_bayar
.
date
()
tgl_bayar
=
self
.
tgl_bayar
.
date
()
...
@@ -44,8 +41,8 @@ class Inquiry(BaseInquiry):
...
@@ -44,8 +41,8 @@ class Inquiry(BaseInquiry):
if
not
tgl
:
if
not
tgl
:
tgl
=
self
.
invoice
.
masadari
.
date
()
tgl
=
self
.
invoice
.
masadari
.
date
()
if
tgl
<
DESEMBER_2024
:
if
tgl
<
DESEMBER_2024
:
return
self
.
denda
return
self
.
denda
_pokok
,
self
.
opsen_denda
return
0
return
0
,
0
def
get_kohir_model
(
self
):
# Override
def
get_kohir_model
(
self
):
# Override
return
Kohir
return
Kohir
...
...
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