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 0c8a3d1b
authored
Jan 30, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount pokok dan denda Kota Bekasi
1 parent
a069c21b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
17 deletions
CHANGES.txt
pyproject.toml
sismiop/services/bekasi_kota.py
CHANGES.txt
View file @
0c8a3d1
0.3.27 2025-01-30
-----------------
- Discount pokok dan denda Kota Bekasi
0.3.26 2025-01-03
0.3.26 2025-01-03
-----------------
-----------------
- Discount pokok Kota Tangerang Selatan
- Discount pokok Kota Tangerang Selatan
...
...
pyproject.toml
View file @
0c8a3d1
...
@@ -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.2
6
'
version
=
'
0.3.2
7
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/bekasi_kota.py
View file @
0c8a3d1
...
@@ -22,12 +22,8 @@ from .binjai import (
...
@@ -22,12 +22,8 @@ from .binjai import (
)
)
DISC_POKOK
=
[
AWAL_DISC_DENDA
=
date
(
2025
,
2
,
1
)
(
date
(
2024
,
7
,
8
),
date
(
2024
,
8
,
18
),
0.1
),
AKHIR_DISC_DENDA
=
date
(
2025
,
5
,
31
)
(
date
(
2024
,
8
,
19
),
date
(
2024
,
9
,
30
),
0.05
),
]
AWAL_DISC_DENDA
=
date
(
2024
,
7
,
8
)
AKHIR_DISC_DENDA
=
date
(
2024
,
9
,
30
)
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
...
@@ -65,20 +61,42 @@ class Inquiry(BaseInquiry):
...
@@ -65,20 +61,42 @@ class Inquiry(BaseInquiry):
self
.
tagihan
,
self
.
get_jatuh_tempo
(),
tgl_bayar
)
self
.
tagihan
,
self
.
get_jatuh_tempo
(),
tgl_bayar
)
self
.
denda
=
round_up
(
denda
)
self
.
denda
=
round_up
(
denda
)
def
hitung_discount
(
self
):
# Override
def
hitung_discount_pokok
(
self
):
self
.
discount_denda
=
self
.
discount_pokok
=
0
if
self
.
tgl_bayar
.
year
!=
2025
:
if
self
.
tgl_bayar
.
year
!=
2024
:
return
if
self
.
invoice
.
faktor_pengurang_sppt
:
return
return
if
self
.
invoice
.
thn_pajak_sppt
==
'2024'
:
thn
=
self
.
invoice
.
thn_pajak_sppt
if
not
self
.
invoice
.
faktor_pengurang_sppt
:
disc
=
0
for
awal
,
akhir
,
potongan
in
DISC_POKOK
:
if
thn
==
'2025'
:
if
awal
<=
self
.
tgl_bayar
<=
akhir
:
if
2
<=
self
.
tgl_bayar
.
month
<=
3
:
self
.
discount_pokok
=
potongan
*
self
.
tagihan
disc
=
0.15
self
.
discount_pokok
=
int
(
self
.
discount_pokok
)
elif
4
<=
self
.
tgl_bayar
.
month
<=
5
:
break
disc
=
0.1
elif
'2019'
<=
thn
<=
'2024'
:
if
2
<=
self
.
tgl_bayar
.
month
<=
5
:
disc
=
0.1
elif
'2013'
<=
thn
<=
'2018'
:
if
2
<=
self
.
tgl_bayar
.
month
<=
5
:
disc
=
0.2
elif
thn
<
'2013'
:
if
2
<=
self
.
tgl_bayar
.
month
<=
3
:
disc
=
0.5
elif
4
<=
self
.
tgl_bayar
.
month
<=
5
:
disc
=
0.4
if
disc
:
self
.
discount_pokok
=
disc
*
self
.
tagihan
self
.
discount_pokok
=
int
(
self
.
discount_pokok
)
def
hitung_discount_denda
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<=
'2024'
:
if
self
.
invoice
.
thn_pajak_sppt
<=
'2024'
:
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
self
.
discount_denda
=
self
.
denda
self
.
discount_denda
=
self
.
denda
def
hitung_discount
(
self
):
# Override
self
.
discount_denda
=
self
.
discount_pokok
=
0
self
.
hitung_discount_pokok
()
self
.
hitung_discount_denda
()
self
.
discount
=
self
.
discount_denda
+
self
.
discount_pokok
self
.
discount
=
self
.
discount_denda
+
self
.
discount_pokok
def
before_save
(
self
,
payment
):
# Override
def
before_save
(
self
,
payment
):
# 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