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 63f08310
authored
Jan 15, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount Kabupaten Cirebon
1 parent
c9ec8726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
opensipkd/pad/services/cirebon_kab.py
opensipkd/pad/services/cirebon_kab.py
View file @
63f0831
...
@@ -16,7 +16,8 @@ INVOICE_ID = [
...
@@ -16,7 +16,8 @@ INVOICE_ID = [
]
]
AKHIR_DISC
=
date
(
2022
,
3
,
31
)
AWAL_DISC
=
date
(
2024
,
1
,
15
)
AKHIR_DISC
=
date
(
2024
,
12
,
31
)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
...
@@ -24,8 +25,12 @@ class Inquiry(BaseInquiry):
...
@@ -24,8 +25,12 @@ class Inquiry(BaseInquiry):
def
get_discount_denda
(
self
):
# Override
def
get_discount_denda
(
self
):
# Override
tgl_bayar
=
self
.
tgl_bayar
.
date
()
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
tgl_bayar
<=
AKHIR_DISC
:
if
AWAL_DISC
<=
tgl_bayar
<=
AKHIR_DISC
:
return
self
.
denda
tgl
=
self
.
get_tgl_kohir
()
if
not
tgl
:
tgl
=
self
.
invoice
.
masadari
.
date
()
if
tgl
.
year
<
2024
:
return
self
.
denda
return
0
return
0
def
get_kohir_model
(
self
):
# Override
def
get_kohir_model
(
self
):
# Override
...
...
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