Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-pad-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 a3bc87b8
authored
Sep 26, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Persen denda 0.6% untuk SKPDKB di Kota Bogor
1 parent
d245a67f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
12 deletions
CHANGES.txt
opensipkd/pad/services/bogor_kota.py
opensipkd/pad/services/default.py
pyproject.toml
CHANGES.txt
View file @
a3bc87b
0.5.23 2025-09-26
-----------------
- Persen denda 0.6% untuk SKPDKB di Kota Bogor
0.5.22 2025-09-16
0.5.22 2025-09-16
-----------------
-----------------
- Bug fixed perhitungan denda saat sudah bayar sebagian
- Bug fixed perhitungan denda saat sudah bayar sebagian
...
...
opensipkd/pad/services/bogor_kota.py
View file @
a3bc87b
...
@@ -8,18 +8,30 @@ from opensipkd.hitung import hitung_denda
...
@@ -8,18 +8,30 @@ from opensipkd.hitung import hitung_denda
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
def
hitung_denda_waktu
(
self
):
# Override
def
hitung_denda_waktu
(
self
):
# Override
persen_denda
=
self
.
get_persen_denda
()
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
def
get_tahun_terbit
(
self
):
if
self
.
invoice
.
type_id
==
5
:
# SKPDKB
tgl
=
self
.
get_tgl_kohir
()
if
tgl
:
return
tgl
.
year
return
self
.
invoice
.
terimatgl
.
year
# 27 Feb 2024 Pak Sisco
# 27 Feb 2024 Pak Sisco
# Menurut Bu Santhy untuk pajak reklame sanksi administrasi atas
# Menurut Bu Santhy untuk pajak reklame sanksi administrasi atas
# kewajiban sebelum berlaku Perda 11 tahun 2023 merujuk ke
# kewajiban sebelum berlaku Perda 11 tahun 2023 merujuk ke
# "Hak dan Kewajiban" = Masa Pajak, bukan tanggal ketetapan.
# "Hak dan Kewajiban" = Masa Pajak, bukan tanggal ketetapan.
tahun_terbit
=
self
.
invoice
.
masadari
.
year
return
self
.
invoice
.
masadari
.
year
def
get_persen_denda
(
self
):
tahun_terbit
=
self
.
get_tahun_terbit
()
if
tahun_terbit
>
2023
:
if
tahun_terbit
>
2023
:
persen_denda
=
1
if
self
.
invoice
.
type_id
==
5
:
else
:
return
0.6
persen_denda
=
self
.
conf
[
'persen_denda'
]
return
1
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
return
2
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
def
get_discount_denda
(
self
):
# Override
def
get_discount_denda
(
self
):
# Override
return
0
return
0
...
...
opensipkd/pad/services/default.py
View file @
a3bc87b
...
@@ -320,12 +320,14 @@ class Inquiry(BaseInquiry):
...
@@ -320,12 +320,14 @@ class Inquiry(BaseInquiry):
self
.
discount_denda
=
self
.
get_discount_denda
()
self
.
discount_denda
=
self
.
get_discount_denda
()
self
.
denda
-=
self
.
discount_denda
self
.
denda
-=
self
.
discount_denda
def
hitung_denda_waktu
(
self
):
def
get_persen_denda
(
self
):
tahun_terbit
=
self
.
get_jatuh_tempo
()
.
year
tahun_terbit
=
self
.
get_jatuh_tempo
()
.
year
if
tahun_terbit
>
2023
:
if
tahun_terbit
>
2023
:
persen_denda
=
1
return
1
else
:
return
2
persen_denda
=
self
.
conf
[
'persen_denda'
]
def
hitung_denda_waktu
(
self
):
persen_denda
=
self
.
get_persen_denda
()
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
self
.
tgl_bayar
.
date
())
...
...
pyproject.toml
View file @
a3bc87b
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
[project]
name
=
'opensipkd-pad-models'
name
=
'opensipkd-pad-models'
version
=
'
0.5.2
2
'
version
=
'
0.5.2
3
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
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