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 01d7b025
authored
Jul 30, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kabupaten Subang discount denda 100% periode Agustus - September
1 parent
022d498e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
15 deletions
CHANGES.txt
sismiop/services/subang.py
CHANGES.txt
View file @
01d7b02
0.3.12 2024-07-30
0.3.12 2024-07-30
-----------------
-----------------
- Kabupaten Subang discount denda 100% periode Agustus - September.
- Kota Tangerang discount pokok 25% untuk 1994 - 2014, discount denda 100%
- Kota Tangerang discount pokok 25% untuk 1994 - 2014, discount denda 100%
untuk 1994 - 2023, periode 1 - 31 Agustus 2024.
untuk 1994 - 2023, periode 1 - 31 Agustus 2024.
...
...
sismiop/services/subang.py
View file @
01d7b02
...
@@ -8,8 +8,8 @@ from .default import (
...
@@ -8,8 +8,8 @@ from .default import (
)
)
AWAL_DISC
=
date
(
2024
,
3
,
25
)
AWAL_DISC
=
date
(
2024
,
8
,
1
)
AKHIR_DISC
=
date
(
2024
,
5
,
31
)
AKHIR_DISC
=
date
(
2024
,
9
,
30
)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
...
@@ -37,21 +37,10 @@ class Inquiry(BaseInquiry):
...
@@ -37,21 +37,10 @@ class Inquiry(BaseInquiry):
self
.
tagihan
=
round_up
(
tagihan
)
self
.
tagihan
=
round_up
(
tagihan
)
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<=
'202
3
'
:
if
self
.
invoice
.
thn_pajak_sppt
<=
'202
4
'
:
return
self
.
denda
return
self
.
denda
return
0
return
0
def
hitung_discount_pokok
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
!=
'2024'
:
return
0
if
self
.
tagihan
<=
2000000
:
potongan
=
0.1
elif
self
.
tagihan
<=
5000000
:
potongan
=
0.075
else
:
potongan
=
0.05
return
int
(
potongan
*
self
.
tagihan
)
def
hitung_discount
(
self
):
# Override
def
hitung_discount
(
self
):
# Override
self
.
discount
=
self
.
discount_denda
=
self
.
discount_pokok
=
0
self
.
discount
=
self
.
discount_denda
=
self
.
discount_pokok
=
0
if
self
.
tgl_bayar
<
AWAL_DISC
:
if
self
.
tgl_bayar
<
AWAL_DISC
:
...
@@ -59,7 +48,6 @@ class Inquiry(BaseInquiry):
...
@@ -59,7 +48,6 @@ class Inquiry(BaseInquiry):
if
self
.
tgl_bayar
>
AKHIR_DISC
:
if
self
.
tgl_bayar
>
AKHIR_DISC
:
return
return
self
.
discount_denda
=
self
.
hitung_discount_denda
()
self
.
discount_denda
=
self
.
hitung_discount_denda
()
self
.
discount_pokok
=
self
.
hitung_discount_pokok
()
self
.
discount
=
self
.
discount_denda
+
self
.
discount_pokok
self
.
discount
=
self
.
discount_denda
+
self
.
discount_pokok
def
before_save
(
self
,
payment
):
# Override
def
before_save
(
self
,
payment
):
# 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