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 03381fd4
authored
Aug 05, 2026
by
iWan Mustaqim
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount Kabupaten Kuningan berdasarkan tempat pembayaran
1 parent
dfb49827
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
CHANGES.txt
pyproject.toml
sismiop/scripts/inquiry.py
sismiop/services/base.py
sismiop/services/kuningan.py
CHANGES.txt
View file @
03381fd
0.4 2026-08-03
--------------
- Discount Kabupaten Kuningan berdasarkan tempat pembayaran
0.3.62 2026-08-02
-----------------
- Discount Kota Tangerang
...
...
pyproject.toml
View file @
03381fd
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'sismiop-models'
version
=
'
0.
3.62
'
version
=
'
0.
4
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/scripts/inquiry.py
View file @
03381fd
...
...
@@ -258,9 +258,11 @@ def main(argv=sys.argv):
ket
=
'berhasil dibayar'
print
(
f
'{invoice_id} {ket}'
)
return
tp
=
get_tp
(
cf
)
with
transaction
.
manager
:
inq
=
Inquiry
(
invoice_id
,
persen_denda
,
tgl_bayar
=
tgl_bayar
,
debug
=
True
)
invoice_id
,
persen_denda
,
tgl_bayar
=
tgl_bayar
,
debug
=
True
,
tp
=
tp
)
if
not
inq
.
invoice
:
print
(
f
'Invoice ID {invoice_id} tidak ada.'
)
if
inq
.
debug_invoice
and
tgl_bayar
:
...
...
@@ -279,7 +281,6 @@ def main(argv=sys.argv):
if
not
inq
.
is_available
():
print
(
'Tagihan tidak diperkenankan dibayar melalui jalur ini.'
)
return
tp
=
get_tp
(
cf
)
pay
=
inq
.
do_payment
(
tp
,
cf
[
'nip_pencatat'
],
option
.
nominal
)
show_payment
(
inq
,
pay
)
if
option
.
reversal
:
...
...
sismiop/services/base.py
View file @
03381fd
...
...
@@ -142,7 +142,7 @@ class Query:
class
Inquiry
(
Query
):
def
__init__
(
self
,
invoice_id
=
None
,
persen_denda
=
2
,
invoice
=
None
,
tgl_bayar
=
None
,
debug
=
False
):
tgl_bayar
=
None
,
debug
=
False
,
tp
=
dict
()
):
Query
.
__init__
(
self
,
invoice_id
,
invoice
)
self
.
debug_invoice
=
None
if
not
self
.
invoice
:
...
...
@@ -158,6 +158,7 @@ class Inquiry(Query):
if
not
self
.
is_available
():
self
.
invoice
=
None
return
self
.
tp
=
tp
self
.
persen_denda
=
self
.
get_persen_denda
()
# Digunakan untuk ISO8583
self
.
tagihan
=
self
.
denda
=
self
.
discount
=
self
.
total
=
0
...
...
sismiop/services/kuningan.py
View file @
03381fd
...
...
@@ -10,8 +10,8 @@ from .cilegon import (
from
.base
import
get_db_session
AWAL_DISC
=
date
(
2026
,
2
,
14
)
AKHIR_DISC
=
date
(
2026
,
4
,
30
)
AWAL_DISC
=
date
(
2026
,
8
,
1
)
AKHIR_DISC
=
date
(
2026
,
10
,
31
)
class
Inquiry
(
BaseInquiry
):
...
...
@@ -49,6 +49,7 @@ class Inquiry(BaseInquiry):
return
0
if
AWAL_DISC
<=
self
.
tgl_bayar
<=
AKHIR_DISC
:
if
'2014'
<=
self
.
invoice
.
thn_pajak_sppt
<=
'2025'
:
if
self
.
tp
[
'kd_tp'
]
==
'49'
:
# BJB MOBILE ?
return
self
.
denda
return
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