Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
sismiop-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 da44640c
authored
Jun 20, 2023
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kabupaten Tasikmalaya
1 parent
60bc5ae8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
CHANGES.txt
sismiop/services/tasik_kab.py
CHANGES.txt
View file @
da44640
0.2.6 2023-06-19
----------------
- Discount Kabupaten Tasikmalaya
0.2.5 2023-06-01
----------------
- Discount Kota Sukabumi
...
...
sismiop/services/tasik_kab.py
View file @
da44640
...
...
@@ -17,7 +17,8 @@ from .base import (
)
MAX_DISC_DATE
=
date
(
2021
,
12
,
24
)
AWAL_DISC
=
date
(
2023
,
6
,
20
)
AKHIR_DISC
=
date
(
2023
,
9
,
30
)
class
Inquiry
(
BaseInquiry
):
...
...
@@ -61,9 +62,9 @@ class Inquiry(BaseInquiry):
self
.
tagihan
=
round_up
(
tagihan
)
def
hitung_discount
(
self
):
# Override
if
self
.
tgl_bayar
<=
MAX_DISC_DATE
and
\
if
AWAL_DISC
<=
self
.
tgl_bayar
<=
AKHIR_DISC
and
\
self
.
invoice
.
thn_pajak_sppt
>=
'2014'
and
\
self
.
invoice
.
thn_pajak_sppt
<=
'202
1
'
:
self
.
invoice
.
thn_pajak_sppt
<=
'202
2
'
:
self
.
discount
=
self
.
denda
else
:
self
.
discount
=
0
...
...
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