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 6d35e446
authored
Jun 01, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kota Sukabumi
1 parent
ca4a998b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
CHANGES.txt
pyproject.toml
sismiop/services/sukabumi_kota.py
CHANGES.txt
View file @
6d35e44
0.3.30 2025-06-01
-----------------
- Discount denda Kota Sukabumi
0.3.29 2025-04-27
-----------------
- Discount Kota Bogor
...
...
pyproject.toml
View file @
6d35e44
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'sismiop-models'
version
=
'
0.3.
29
'
version
=
'
0.3.
30
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/sukabumi_kota.py
View file @
6d35e44
...
...
@@ -23,8 +23,8 @@ from .base import (
AWAL_SATU_PERSEN
=
date
(
2024
,
10
,
3
)
AWAL_DISC
=
date
(
202
4
,
10
,
3
)
AKHIR_DISC
=
date
(
202
4
,
12
,
31
)
AWAL_DISC
=
date
(
202
5
,
6
,
1
)
AKHIR_DISC
=
date
(
202
5
,
9
,
30
)
def
get_nop
(
row
):
...
...
@@ -69,7 +69,7 @@ class Inquiry(BaseInquiry):
def
hitung_denda
(
self
):
# Override
if
AWAL_DISC
<=
self
.
tgl_bayar
<=
AKHIR_DISC
and
\
'2009'
<=
self
.
invoice
.
THN_PAJAK_SPPT
<=
'202
3
'
:
'2009'
<=
self
.
invoice
.
THN_PAJAK_SPPT
<=
'202
4
'
:
self
.
bln_tunggakan
=
0
self
.
denda
=
0
else
:
...
...
@@ -185,13 +185,16 @@ class Inquiry(BaseInquiry):
q
=
q
.
order_by
(
Payment
.
PEMBAYARAN_SPPT_KE
.
desc
())
return
q
.
first
()
def
do_payment
(
self
,
bank_fields
,
nip_pencatat
):
def
do_payment
(
self
,
bank_fields
,
nip_pencatat
,
nominal
=
None
,
denda
=
0
):
DBSession
=
get_db_session
()
bayar
=
self
.
invoice2payment
()
if
bayar
:
ke
=
bayar
.
PEMBAYARAN_SPPT_KE
+
1
else
:
ke
=
1
if
nominal
is
not
None
:
self
.
total
=
nominal
self
.
denda
=
denda
inv
=
self
.
invoice
d
=
dict
(
KD_PROPINSI
=
inv
.
KD_PROPINSI
,
KD_DATI2
=
inv
.
KD_DATI2
,
...
...
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