Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-bphtb-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 67f32728
authored
Nov 06, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Di Kota Bekasi memastikan status yang diproses hanya 0 dan 1
1 parent
aced2df3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
6 deletions
CHANGES.txt
opensipkd/bphtb/scripts/inquiry.py
opensipkd/bphtb/services/bekasi_kota.py
pyproject.toml
CHANGES.txt
View file @
67f3272
0.4.17 2026-11-05
-----------------
- Di Kota Bekasi memastikan status yang diproses hanya 0 dan 1
0.4.16 2026-11-03
-----------------
- Di Kota Bekasi memastikan alamat tidak menampilkan karakter aneh
...
...
opensipkd/bphtb/scripts/inquiry.py
View file @
67f3272
...
...
@@ -114,7 +114,7 @@ def show_inquiry(inq):
show_val
(
'Tahun Pajak'
,
inq
.
get_tahun
())
print
(
'Tabel {}:'
.
format
(
inq
.
invoice
.
__table__
.
name
))
show_fields
(
inq
.
invoice
,
[
'doc_id'
,
'pengenaan'
,
'denda_rp'
,
inq
.
invoice
,
[
'doc_id'
,
'pengenaan'
,
'denda_rp'
,
'status_bayar'
,
'status_pembayaran'
,
'nil_setor'
,
'nomor'
,
'tanggal'
])
show_payment_from_inquiry
(
inq
)
...
...
@@ -138,7 +138,12 @@ def main(argv=sys.argv):
tgl_bayar
=
option
.
tgl_bayar
and
to_date
(
option
.
tgl_bayar
)
inq
=
services
.
Inquiry
(
invoice_id
,
conf
,
tgl_bayar
)
if
not
inq
.
invoice
:
error
(
f
'Invoice ID {invoice_id} tidak ada.'
)
if
inq
.
debug_invoice
:
error
(
f
'Invoice ID {option.invoice_id} tidak tersedia karena '
'status_bayar bukan 0 atau 1 melainkan '
f
'{inq.debug_invoice.status_bayar}'
)
error
(
f
'Invoice ID {option.invoice_id} tidak ada.'
)
show_inquiry
(
inq
)
if
option
.
payment
:
if
not
inq
.
total
:
...
...
opensipkd/bphtb/services/bekasi_kota.py
View file @
67f3272
...
...
@@ -43,10 +43,11 @@ class Common:
def
get_jatuh_tempo
(
self
):
pass
def
is_paid
(
self
):
return
self
.
invoice
.
status_bayar
==
'1'
def
is_available
(
self
):
# Meski reversal tetap tidak bisa dibayarkan lagi karena kd_booking
# unique.
return
not
self
.
payment
and
self
.
invoice
.
status_bayar
==
'0'
return
self
.
invoice
.
status_bayar
in
(
'0'
,
'1'
)
def
get_payment
(
self
):
db_session
=
get_db_session
()
...
...
@@ -59,8 +60,13 @@ class Common:
class
Inquiry
(
Common
):
def
__init__
(
self
,
invoice_id
,
conf
,
tgl_bayar
=
None
):
super
()
.
__init__
(
invoice_id
)
self
.
debug_invoice
=
None
if
not
self
.
invoice
:
return
if
not
self
.
is_available
():
self
.
debug_invoice
=
self
.
invoice
self
.
invoice
=
None
return
self
.
conf
=
conf
if
tgl_bayar
:
self
.
tgl_bayar
=
tgl_bayar
...
...
@@ -82,6 +88,8 @@ class Inquiry(Common):
self
.
total
=
self
.
tagihan
-
self
.
total_bayar
if
self
.
total
<
0
:
self
.
total
=
0
if
self
.
is_paid
():
self
.
total
=
0
def
get_payment_amount
(
self
):
db_session
=
get_db_session
()
...
...
@@ -236,6 +244,8 @@ class AvailableInvoice(BaseAvailableInvoice):
inq
=
Inquiry
(
row
.
kd_booking
,
self
.
conf
)
if
not
inq
.
is_available
():
return
if
inq
.
is_paid
():
return
msg
=
'{} {} {} {}'
.
format
(
inq
.
invoice_id
,
inq
.
get_tahun
(),
inq
.
get_nop
(),
inq
.
get_nama
())
...
...
pyproject.toml
View file @
67f3272
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'opensipkd-bphtb-models'
version
=
'
0.4.1
6
'
version
=
'
0.4.1
7
'
dependencies
=
[
'psycopg'
,
'zope.sqlalchemy'
,
...
...
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