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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 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
0.3.59 2026-07-08
-----------------
-----------------
- Bug fixed Kota Banjar saat reversal
- Bug fixed Kota Banjar saat reversal
...
...
pyproject.toml
View file @
90b15e7
...
@@ -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.
59
'
version
=
'
0.3.
60
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/bekasi_kota.py
View file @
90b15e7
...
@@ -25,19 +25,12 @@ from .binjai import (
...
@@ -25,19 +25,12 @@ from .binjai import (
)
)
"""
AWAL_DISC
=
date
(
2026
,
8
,
1
)
Ketentuan:
AKHIR_DISC
=
date
(
2026
,
9
,
9
)
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
)
BUKU_DISC_POKOK
=
[
BUKU_DISC_POKOK
=
[
(
100000
,
0.
29
),
(
100000
,
0.
17
),
(
500000
,
0.
1
),
(
500000
,
0.
08
),
(
2000000
,
0.05
),
(
2000000
,
0.05
),
(
5000000
,
0.03
),
(
5000000
,
0.03
),
(
None
,
0.02
)]
(
None
,
0.02
)]
...
@@ -47,6 +40,12 @@ TAHUN_LUNAS = [str(x) for x in range(2021, 2027)]
...
@@ -47,6 +40,12 @@ TAHUN_LUNAS = [str(x) for x in range(2021, 2027)]
def
hitung_denda
(
def
hitung_denda
(
tagihan
:
int
,
jatuh_tempo
:
date
,
tgl_hitung
:
date
,
tagihan
:
int
,
jatuh_tempo
:
date
,
tgl_hitung
:
date
,
tahun
:
str
)
->
tuple
:
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
:
if
jatuh_tempo
>=
tgl_hitung
:
return
0
,
0
return
0
,
0
if
tahun
<=
'2018'
:
if
tahun
<=
'2018'
:
...
@@ -120,12 +119,13 @@ class Inquiry(BaseInquiry):
...
@@ -120,12 +119,13 @@ class Inquiry(BaseInquiry):
lunas
=
False
lunas
=
False
break
break
if
lunas
:
if
lunas
:
disc
=
0.8
7
disc
=
0.8
1
if
disc
:
if
disc
:
self
.
discount_pokok
=
disc
*
self
.
tagihan
self
.
discount_pokok
=
disc
*
self
.
tagihan
self
.
discount_pokok
=
int
(
self
.
discount_pokok
)
self
.
discount_pokok
=
int
(
self
.
discount_pokok
)
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<=
'2025'
:
self
.
discount_denda
=
self
.
denda
self
.
discount_denda
=
self
.
denda
def
hitung_discount
(
self
):
# Override
def
hitung_discount
(
self
):
# Override
...
...
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