Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
payment-report
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 041a952f
authored
Apr 14, 2021
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Pencarian PembayaranSppt melibatkan field pembayaran_sppt_ke
1 parent
82a43b4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
payment_report/scripts/pbb.py
payment_report/scripts/pbb.py
View file @
041a952
...
...
@@ -71,17 +71,17 @@ class App(BaseApp):
def
get_db_session
(
self
):
# Override
return
get_db_session
()
def
get_psppt
(
self
,
p
):
def
get_psppt
(
self
,
p
ay
):
q
=
self
.
base_q_psppt
.
filter_by
(
kd_propinsi
=
p
[
'Propinsi'
]
,
kd_dati2
=
p
[
'Kabupaten'
]
,
kd_kecamatan
=
p
[
'Kecamatan'
]
,
kd_kelurahan
=
p
[
'Kelurahan'
]
,
kd_blok
=
p
[
'Blok'
]
,
no_urut
=
p
[
'Urut'
]
,
kd_jns_op
=
p
[
'Jenis'
]
,
thn_pajak_sppt
=
p
[
'Tahun'
])
.
order_by
(
self
.
PembayaranSppt
.
pembayaran_sppt_ke
.
desc
()
)
kd_propinsi
=
p
ay
.
propinsi
,
kd_dati2
=
p
ay
.
kabupaten
,
kd_kecamatan
=
p
ay
.
kecamatan
,
kd_kelurahan
=
p
ay
.
kelurahan
,
kd_blok
=
p
ay
.
blok
,
no_urut
=
p
ay
.
urut
,
kd_jns_op
=
p
ay
.
jenis
,
thn_pajak_sppt
=
p
ay
.
tahun
,
pembayaran_sppt_ke
=
pay
.
ke
)
return
q
.
first
()
def
get_sppt
(
self
,
p
):
...
...
@@ -122,7 +122,7 @@ class App(BaseApp):
tgl_bayar
=
get_tgl_bayar
(
iso
,
row_inq
.
tgl
.
year
)
s_tgl
=
dmyhms
(
tgl_bayar
)
p
=
get_profile
(
iso
)
psppt
=
self
.
get_psppt
(
p
)
psppt
=
self
.
get_psppt
(
row_pay
)
if
not
psppt
:
self
.
__log_not_found
(
s_tgl
,
d
)
continue
...
...
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