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 90b15e71
authored
Jul 31, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Rumus discount Kota Bekasi
1 parent
7b29e332
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
CHANGES.txt
pyproject.toml
sismiop/services/bekasi_kota.py
CHANGES.txt
View file @
90b15e7
0.3.60 2026-07-30
-----------------
- Rumus discount Kota Bekasi
0.3.59 2026-07-08
-----------------
- Bug fixed Kota Banjar saat reversal
...
...
pyproject.toml
View file @
90b15e7
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'sismiop-models'
version
=
'
0.3.
59
'
version
=
'
0.3.
60
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/bekasi_kota.py
View file @
90b15e7
...
...
@@ -25,19 +25,12 @@ from .binjai import (
)
"""
Ketentuan:
1. Tahun Pajak <= 2018 denda 2
%
max 24 bulan
2. 2019 <= Tahun Pajak <= 2023 denda 2
%
max 15 bulan
3. Tahun Pajak >= 2024 denda 1
%
max 24 bulan
"""
AWAL_DISC
=
date
(
2026
,
2
,
20
)
AKHIR_DISC
=
date
(
2026
,
5
,
31
)
AWAL_DISC
=
date
(
2026
,
8
,
1
)
AKHIR_DISC
=
date
(
2026
,
9
,
9
)
BUKU_DISC_POKOK
=
[
(
100000
,
0.
29
),
(
500000
,
0.
1
),
(
100000
,
0.
17
),
(
500000
,
0.
08
),
(
2000000
,
0.05
),
(
5000000
,
0.03
),
(
None
,
0.02
)]
...
...
@@ -47,6 +40,12 @@ TAHUN_LUNAS = [str(x) for x in range(2021, 2027)]
def
hitung_denda
(
tagihan
:
int
,
jatuh_tempo
:
date
,
tgl_hitung
:
date
,
tahun
:
str
)
->
tuple
:
"""
Ketentuan:
1. Tahun Pajak <= 2018 denda 2
%
max 24 bulan
2. 2019 <= Tahun Pajak <= 2023 denda 2
%
max 15 bulan
3. Tahun Pajak >= 2024 denda 1
%
max 24 bulan
"""
if
jatuh_tempo
>=
tgl_hitung
:
return
0
,
0
if
tahun
<=
'2018'
:
...
...
@@ -120,13 +119,14 @@ class Inquiry(BaseInquiry):
lunas
=
False
break
if
lunas
:
disc
=
0.8
7
disc
=
0.8
1
if
disc
:
self
.
discount_pokok
=
disc
*
self
.
tagihan
self
.
discount_pokok
=
int
(
self
.
discount_pokok
)
def
hitung_discount_denda
(
self
):
self
.
discount_denda
=
self
.
denda
if
self
.
invoice
.
thn_pajak_sppt
<=
'2025'
:
self
.
discount_denda
=
self
.
denda
def
hitung_discount
(
self
):
# Override
self
.
discount_denda
=
self
.
discount_pokok
=
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