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 079efc8f
authored
Feb 13, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount Kota Bekasi
1 parent
70e85ff5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
14 deletions
CHANGES.txt
pyproject.toml
sismiop/services/bekasi_kota.py
CHANGES.txt
View file @
079efc8
0.3.48 2026-02-11
-----------------
- Discount Kota Bekasi
0.3.47 2026-01-15
-----------------
- Discount pokok Kabupaten Cirebon untuk tahun pajak 2026
...
...
pyproject.toml
View file @
079efc8
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'sismiop-models'
version
=
'
0.3.4
7
'
version
=
'
0.3.4
8
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/bekasi_kota.py
View file @
079efc8
...
...
@@ -14,7 +14,10 @@ from ..models.bekasi_kota import (
Kecamatan
,
Propinsi
,
)
from
.base
import
Query
from
.base
import
(
Query
,
get_db_session
,
)
from
.binjai
import
(
AvailableInvoice
as
BaseAvailableInvoice
,
Inquiry
as
BaseInquiry
,
...
...
@@ -23,8 +26,18 @@ from .binjai import (
MAX_BULAN_DENDA
=
24
AWAL_DISC
=
date
(
2025
,
12
,
8
)
AKHIR_DISC
=
date
(
2025
,
12
,
30
)
AWAL_DISC
=
date
(
2026
,
2
,
20
)
AKHIR_DISC
=
date
(
2026
,
4
,
30
)
TAHUN_PAJAK_DISC_POKOK
=
'2026'
BUKU_DISC_POKOK
=
[
(
100000
,
0.29
),
(
500000
,
0.1
),
(
2000000
,
0.05
),
(
5000000
,
0.03
),
(
None
,
0.02
)]
TAHUN_LUNAS
=
[
str
(
x
)
for
x
in
range
(
2021
,
2027
)]
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
...
...
@@ -62,6 +75,15 @@ class Inquiry(BaseInquiry):
if
self
.
invoice
and
self
.
invoice
.
status_pembayaran_sppt
==
'1'
:
self
.
tagihan
=
self
.
denda
=
self
.
discount
=
self
.
total
=
0
def
tahun_lunas
(
self
,
tahun
):
db_session
=
get_db_session
()
Sppt
=
self
.
get_invoice_model
()
q
=
db_session
.
query
(
Sppt
)
q
=
self
.
get_filter_op
(
q
)
q
=
q
.
filter_by
(
thn_pajak_sppt
=
tahun
)
row
=
q
.
first
()
return
row
and
row
.
status_pembayaran_sppt
==
'1'
def
hitung_denda
(
self
):
# Override
if
isinstance
(
self
.
tgl_bayar
,
datetime
):
tgl_bayar
=
self
.
tgl_bayar
.
date
()
...
...
@@ -74,17 +96,24 @@ class Inquiry(BaseInquiry):
def
hitung_discount_pokok
(
self
):
if
self
.
invoice
.
faktor_pengurang_sppt
:
return
thn
=
self
.
invoice
.
thn_pajak_sppt
if
'2024'
<=
thn
<=
'2025'
:
disc
=
0.1
elif
'2020'
<=
thn
<=
'2023'
:
disc
=
0.25
elif
'2013'
<=
thn
<=
'2019'
:
disc
=
0.5
elif
thn
<
'2013'
:
disc
=
0.75
else
:
disc
=
0
if
self
.
invoice
.
thn_pajak_sppt
==
'2026'
:
for
max_tagihan
,
disc
in
BUKU_DISC_POKOK
:
if
max_tagihan
is
None
:
break
if
self
.
invoice
.
pbb_yg_harus_dibayar_sppt
<=
max_tagihan
:
break
elif
self
.
invoice
.
thn_pajak_sppt
<=
'2020'
:
lunas
=
True
for
th
in
TAHUN_LUNAS
:
if
self
.
tahun_lunas
(
th
):
print
(
f
'Tahun {th} lunas'
)
else
:
print
(
f
'Tahun {th} belum lunas'
)
lunas
=
False
break
if
lunas
:
disc
=
0.87
if
disc
:
self
.
discount_pokok
=
disc
*
self
.
tagihan
self
.
discount_pokok
=
int
(
self
.
discount_pokok
)
...
...
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