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 4c5ea6f2
authored
Feb 20, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount Kota Tangerang menggunakan round()
1 parent
0c8a3d1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
10 deletions
CHANGES.txt
sismiop/services/tangkota.py
CHANGES.txt
View file @
4c5ea6f
0.3.28 2025-02-20
-----------------
- Discount Kota Tangerang menggunakan round() ketimbang int() sesuai rumus
SISMIOP.
0.3.27 2025-01-30
0.3.27 2025-01-30
-----------------
-----------------
- Discount pokok dan denda Kota Bekasi
- Discount pokok dan denda Kota Bekasi
...
...
sismiop/services/tangkota.py
View file @
4c5ea6f
...
@@ -15,10 +15,8 @@ from .tangsel import (
...
@@ -15,10 +15,8 @@ from .tangsel import (
MAX_BULAN_DENDA
=
24
MAX_BULAN_DENDA
=
24
AWAL_DISC
=
date
(
2024
,
8
,
1
)
AWAL_DISC
=
date
(
2025
,
1
,
17
)
AKHIR_DISC
=
date
(
2024
,
8
,
31
)
AKHIR_DISC
=
date
(
2025
,
3
,
31
)
TAHUN_PAJAK_DISC_POKOK
=
[
str
(
x
)
for
x
in
range
(
1994
,
2014
+
1
)]
TAHUN_PAJAK_DISC_DENDA
=
[
str
(
x
)
for
x
in
range
(
1994
,
2023
+
1
)]
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
...
@@ -77,14 +75,26 @@ class Inquiry(BaseInquiry):
...
@@ -77,14 +75,26 @@ class Inquiry(BaseInquiry):
self
.
discount
=
self
.
discount_pokok
+
self
.
discount_denda
self
.
discount
=
self
.
discount_pokok
+
self
.
discount_denda
def
hitung_discount_pokok
(
self
):
def
hitung_discount_pokok
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
in
TAHUN_PAJAK_DISC_POKOK
:
thn
=
self
.
invoice
.
thn_pajak_sppt
return
int
(
0.25
*
self
.
tagihan
)
if
'1994'
<=
thn
<=
'2014'
:
return
0
disc
=
0.25
elif
thn
==
'2025'
:
if
self
.
tagihan
<=
100000
:
disc
=
0.2
elif
self
.
tagihan
<=
500000
:
disc
=
0.1
elif
self
.
tagihan
<=
2000000
:
disc
=
0.06
elif
self
.
tagihan
<=
5000000
:
disc
=
0.04
else
:
disc
=
0.03
else
:
disc
=
0
return
round
(
disc
*
self
.
tagihan
)
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
in
TAHUN_PAJAK_DISC_DENDA
:
return
self
.
denda
return
self
.
denda
return
0
class
AvailableInvoice
(
BaseAvailableInvoice
):
class
AvailableInvoice
(
BaseAvailableInvoice
):
...
...
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