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 cad610e1
authored
Aug 31, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kota Bogor
1 parent
975e873c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
CHANGES.txt
pyproject.toml
sismiop/services/bogor_kota.py
CHANGES.txt
View file @
cad610e
0.4.2 2026-08-31
----------------
- Discount denda Kota Bogor
0.4.1 2026-08-07
----------------
- Kota Bekasi tidak lagi ada dinamika tagihan pokok, cukup dalam discount
...
...
pyproject.toml
View file @
cad610e
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'sismiop-models'
version
=
'
0.4.
1
'
version
=
'
0.4.
2
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/bogor_kota.py
View file @
cad610e
...
...
@@ -20,8 +20,8 @@ DISC_POKOK_2025 = [
(
date
(
2025
,
4
,
28
),
date
(
2025
,
5
,
27
),
0.1
),
(
date
(
2025
,
5
,
28
),
date
(
2025
,
6
,
28
),
0.05
),
]
DISC_DENDA_AWAL
=
date
(
2026
,
6
,
1
)
DISC_DENDA_AKHIR
=
date
(
2026
,
6
,
30
)
DISC_DENDA_AWAL
=
date
(
2026
,
9
,
1
)
DISC_DENDA_AKHIR
=
date
(
2026
,
12
,
31
)
DISC_POKOK_AWAL
=
date
(
2026
,
2
,
24
)
DISC_POKOK_AKHIR
=
date
(
2026
,
3
,
23
)
...
...
@@ -128,17 +128,19 @@ class Inquiry(BaseInquiry, Common):
def
hitung_discount_denda
(
self
):
if
not
(
DISC_DENDA_AWAL
<=
self
.
tgl_bayar
<=
DISC_DENDA_AKHIR
):
return
if
self
.
invoice
.
thn_pajak_sppt
>
'202
5
'
:
if
self
.
invoice
.
thn_pajak_sppt
>
'202
6
'
:
return
if
not
self
.
is_e_sppt
():
print
(
'Tidak terdaftar di tabel e_sppt'
)
return
if
self
.
invoice
.
thn_pajak_sppt
==
'2026'
:
self
.
discount_denda
=
int
(
0.5
*
self
.
denda
)
return
if
self
.
tahun_lunas
(
'2026'
):
print
(
f
'Tahun 2026 lunas'
)
else
:
print
(
f
'Tahun 2026 belum lunas'
)
self
.
discount_denda
=
int
(
0.5
*
self
.
denda
)
return
self
.
discount_denda
=
self
.
denda
print
(
f
'Tahun 2026 belum lunas'
)
def
hitung_discount
(
self
):
# Override
self
.
discount_pokok
=
self
.
discount_denda
=
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