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 35746037
authored
Jul 31, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount pokok dan denda Kota Tangerang
1 parent
129fafd7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
21 deletions
CHANGES.txt
pyproject.toml
sismiop/services/tangkota.py
CHANGES.txt
View file @
3574603
0.3.35 2025-07-31
-----------------
- Discount pokok dan denda Kota Tangerang
0.3.34 2025-07-16
-----------------
- Discount denda Kabupaten Tasikmalaya
...
...
pyproject.toml
View file @
3574603
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'sismiop-models'
version
=
'
0.3.3
4
'
version
=
'
0.3.3
5
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/tangkota.py
View file @
3574603
...
...
@@ -15,8 +15,8 @@ from .tangsel import (
MAX_BULAN_DENDA
=
24
AWAL_DISC
=
date
(
2025
,
1
,
17
)
AKHIR_DISC
=
date
(
2025
,
3
,
31
)
AWAL_DISC
=
date
(
2025
,
8
,
1
)
AKHIR_DISC
=
date
(
2025
,
8
,
29
)
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
...
...
@@ -75,26 +75,14 @@ class Inquiry(BaseInquiry):
self
.
discount
=
self
.
discount_pokok
+
self
.
discount_denda
def
hitung_discount_pokok
(
self
):
thn
=
self
.
invoice
.
thn_pajak_sppt
if
'1994'
<=
thn
<=
'2014'
:
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
)
if
'1990'
<=
self
.
invoice
.
thn_pajak_sppt
<=
'2014'
:
return
round
(
0.2
*
self
.
tagihan
)
return
0
def
hitung_discount_denda
(
self
):
return
self
.
denda
if
'1990'
<=
self
.
invoice
.
thn_pajak_sppt
<=
'2024'
:
return
self
.
denda
return
0
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