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 868ecd9a
authored
Jan 30, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kabupaten Magelang mengenakan denda 1%
1 parent
41e59694
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletions
CHANGES.txt
opensipkd/pad/services/magelang_kab.py
pyproject.toml
CHANGES.txt
View file @
868ecd9
0.5.21 2025-01-22
-----------------
- Kabupaten Magelang mengenakan denda 1% mulai masa pajak Oktober 2024 tanggal
bayar 1 Februari 2025
0.5.20 2025-01-16
-----------------
- Kabupaten Tangerang tidak ada denda karena kini dendanya menggunakan nomor
...
...
opensipkd/pad/services/magelang_kab.py
View file @
868ecd9
from
datetime
import
date
from
opensipkd.hitung
import
(
round_up
,
hitung_denda
,
)
from
.default
import
(
Inquiry
as
BaseInquiry
,
Reversal
as
BaseReversal
,
...
...
@@ -9,7 +14,22 @@ from ..models.tangerang_kab import (
)
AWAL_MASA_DENDA_1_PERSEN
=
date
(
2024
,
10
,
1
)
AWAL_BAYAR_DENDA_1_PERSEN
=
date
(
2025
,
2
,
1
)
class
Inquiry
(
BaseInquiry
):
def
hitung_denda_waktu
(
self
):
# Override
tgl_terbit
=
self
.
get_jatuh_tempo
()
if
tgl_terbit
>=
AWAL_MASA_DENDA_1_PERSEN
and
\
self
.
tgl_bayar
.
date
()
>=
AWAL_BAYAR_DENDA_1_PERSEN
:
persen_denda
=
1
else
:
persen_denda
=
2
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
def
get_kohir_model
(
self
):
# Override
return
Kohir
...
...
pyproject.toml
View file @
868ecd9
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'opensipkd-pad-models'
version
=
'
0.5.2
0
'
version
=
'
0.5.2
1
'
dependencies
=
[
'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