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 6b559e8d
authored
Dec 18, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed total bayar di Kota Bogor
1 parent
b5654a30
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
CHANGES.txt
pyproject.toml
sismiop/services/bekasi_kota.py
sismiop/services/bogor_kota.py
CHANGES.txt
View file @
6b559e8
0.3.43 2025-12-17
-----------------
- Bug fixed total bayar di Kota Bogor
- Discount pokok Kota Bekasi (2025-12-7)
0.3.42 2025-11-12
0.3.42 2025-11-12
-----------------
-----------------
- Discount denda di Kabupaten Subang
- Discount denda di Kabupaten Subang
...
...
pyproject.toml
View file @
6b559e8
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
[project]
name
=
'sismiop-models'
name
=
'sismiop-models'
version
=
'
0.3.4
2
'
version
=
'
0.3.4
3
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/bekasi_kota.py
View file @
6b559e8
...
@@ -23,8 +23,8 @@ from .binjai import (
...
@@ -23,8 +23,8 @@ from .binjai import (
MAX_BULAN_DENDA
=
24
MAX_BULAN_DENDA
=
24
AWAL_DISC
=
date
(
2025
,
1
0
,
1
)
AWAL_DISC
=
date
(
2025
,
1
2
,
8
)
AKHIR_DISC
=
date
(
2025
,
1
1
,
30
)
AKHIR_DISC
=
date
(
2025
,
1
2
,
30
)
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
...
@@ -75,7 +75,7 @@ class Inquiry(BaseInquiry):
...
@@ -75,7 +75,7 @@ class Inquiry(BaseInquiry):
if
self
.
invoice
.
faktor_pengurang_sppt
:
if
self
.
invoice
.
faktor_pengurang_sppt
:
return
return
thn
=
self
.
invoice
.
thn_pajak_sppt
thn
=
self
.
invoice
.
thn_pajak_sppt
if
thn
==
'2024
'
:
if
'2024'
<=
thn
<=
'2025
'
:
disc
=
0.1
disc
=
0.1
elif
'2020'
<=
thn
<=
'2023'
:
elif
'2020'
<=
thn
<=
'2023'
:
disc
=
0.25
disc
=
0.25
...
...
sismiop/services/bogor_kota.py
View file @
6b559e8
from
datetime
import
date
from
datetime
import
date
from
opensipkd.hitung
import
round_up
from
..models.bogor_kota
import
(
from
..models.bogor_kota
import
(
PenguranganCovid
,
PenguranganCovid
,
PenguranganPst
,
PenguranganPst
,
...
@@ -68,6 +69,23 @@ class Inquiry(BaseInquiry, Common):
...
@@ -68,6 +69,23 @@ class Inquiry(BaseInquiry, Common):
pst
=
q
.
first
()
pst
=
q
.
first
()
return
pst
and
pst
.
no_sk
and
pst
.
status_sk_peng_pst
!=
'2'
return
pst
and
pst
.
no_sk
and
pst
.
status_sk_peng_pst
!=
'2'
def
hitung_pokok
(
self
):
# Override
q
=
self
.
get_payment_sum
()
q
=
self
.
get_filter
(
q
)
bayar
=
q
.
first
()
discount_lalu
=
float
(
bayar
.
discount
or
0
)
self
.
total_bayar
=
float
(
bayar
.
jml_sppt_yg_dibayar
or
0
)
self
.
total_bayar
-=
discount_lalu
if
self
.
total_bayar
<
0
:
self
.
total_bayar
=
0
denda_lalu
=
float
(
bayar
.
denda_sppt
or
0
)
sisa
=
self
.
total_bayar
-
denda_lalu
tagihan
=
self
.
get_tagihan_pokok
()
-
sisa
-
discount_lalu
if
tagihan
<
0
:
self
.
tagihan
=
0
else
:
self
.
tagihan
=
round_up
(
tagihan
)
def
hitung_discount_pokok
(
self
):
def
hitung_discount_pokok
(
self
):
if
not
self
.
is_e_sppt
():
if
not
self
.
is_e_sppt
():
return
return
...
...
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