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 8669eb9b
authored
Nov 10, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kabupaten Subang
1 parent
ae8a4e72
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
CHANGES.txt
pyproject.toml
sismiop/services/subang.py
CHANGES.txt
View file @
8669eb9
0.4.12 2026-11-09
-----------------
- Discount denda Kabupaten Subang
0.4.11 2026-10-27
-----------------
- Discount denda Kota Bekasi
...
...
pyproject.toml
View file @
8669eb9
...
...
@@ -3,9 +3,8 @@ requires = ['setuptools >= 64']
[project]
name
=
'sismiop-models'
version
=
'
0.4.1
1
'
version
=
'
0.4.1
2
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
'transaction'
,
'psycopg-binary'
,
...
...
sismiop/services/subang.py
View file @
8669eb9
...
...
@@ -8,9 +8,6 @@ from .default import (
)
AWAL_DISC
=
date
(
2026
,
2
,
13
)
AKHIR_DISC
=
date
(
2026
,
4
,
30
)
AKHIR_DISC_KHUSUS
=
date
(
2025
,
12
,
15
)
NOP_DISC_KHUSUS
=
[
'3215130008027000102020'
,
...
...
@@ -20,6 +17,10 @@ NOP_DISC_KHUSUS = [
'3215130008028000102021'
,
'3215130008028000102022'
]
PERIODE_DISC
=
[
(
date
(
2026
,
11
,
10
),
date
(
2026
,
12
,
31
),
'2026'
),
(
date
(
2026
,
2
,
13
),
date
(
2026
,
4
,
30
),
'2025'
)]
class
Inquiry
(
BaseInquiry
):
def
get_payment_model
(
self
):
# Override
...
...
@@ -53,19 +54,14 @@ class Inquiry(BaseInquiry):
return
0
def
hitung_discount_denda
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<=
'2025'
:
return
self
.
denda
for
awal
,
akhir
,
tahun
in
PERIODE_DISC
:
if
awal
<=
self
.
tgl_bayar
<=
akhir
and
\
self
.
invoice
.
thn_pajak_sppt
<=
tahun
:
return
self
.
denda
return
0
def
hitung_discount
(
self
):
# Override
self
.
discount
=
self
.
discount_denda
=
self
.
discount_pokok
=
0
if
self
.
tgl_bayar
<
AWAL_DISC
:
return
if
self
.
tgl_bayar
>
AKHIR_DISC
:
return
if
self
.
invoice
.
thn_pajak_sppt
>
'2025'
:
return
# self.discount_pokok = self.hitung_discount_pokok()
self
.
discount_pokok
=
self
.
hitung_discount_pokok
()
self
.
discount_denda
=
self
.
hitung_discount_denda
()
self
.
discount
=
self
.
discount_denda
+
self
.
discount_pokok
...
...
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