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 ae8a4e72
authored
Oct 28, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Perbaikan rumus discount Kota Tasik
1 parent
ed815d16
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
CHANGES.txt
sismiop/services/tasik_kota.py
CHANGES.txt
View file @
ae8a4e7
0.4.11 2026-10-27
0.4.11 2026-10-27
-----------------
-----------------
- Discount denda Kota Bekasi
- Discount denda Kota Bekasi
- Perbaikan rumus discount Kota Tasikmalaya yaitu discount pokok berlaku bila
2026 lunas di periode discount
0.4.10 2026-10-21
0.4.10 2026-10-21
-----------------
-----------------
...
...
sismiop/services/tasik_kota.py
View file @
ae8a4e7
from
datetime
import
date
from
datetime
import
date
from
..models.tasik_kota
import
Sppt
from
..models.tasik_kota
import
(
Sppt
,
PembayaranSppt
,
)
from
.base
import
get_db_session
from
.base
import
get_db_session
from
.tasik_kab
import
(
from
.tasik_kab
import
(
AvailableInvoice
,
AvailableInvoice
,
...
@@ -62,5 +65,19 @@ class Inquiry(BaseInquiry):
...
@@ -62,5 +65,19 @@ class Inquiry(BaseInquiry):
q
=
db_session
.
query
(
Sppt
)
q
=
db_session
.
query
(
Sppt
)
q
=
self
.
get_filter_op
(
q
)
q
=
self
.
get_filter_op
(
q
)
q
=
q
.
filter_by
(
thn_pajak_sppt
=
tahun
)
q
=
q
.
filter_by
(
thn_pajak_sppt
=
tahun
)
row
=
q
.
first
()
inv
=
q
.
first
()
return
row
and
row
.
status_pembayaran_sppt
==
'1'
if
inv
and
inv
.
status_pembayaran_sppt
==
'1'
:
q
=
db_session
.
query
(
PembayaranSppt
)
.
filter_by
(
kd_propinsi
=
inv
.
kd_propinsi
,
kd_dati2
=
inv
.
kd_dati2
,
kd_kecamatan
=
inv
.
kd_kecamatan
,
kd_kelurahan
=
inv
.
kd_kelurahan
,
kd_blok
=
inv
.
kd_blok
,
no_urut
=
inv
.
no_urut
,
kd_jns_op
=
inv
.
kd_jns_op
,
thn_pajak_sppt
=
inv
.
thn_pajak_sppt
)
q
=
q
.
order_by
(
PembayaranSppt
.
tgl_rekam_byr_sppt
.
desc
())
pay
=
q
.
first
()
if
pay
:
if
AWAL_DISC
<=
pay
.
tgl_pembayaran_sppt
.
date
()
<=
AKHIR_DISC
:
return
True
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