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 396ca087
authored
Mar 18, 2023
by
payment channel pajak daerah
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed BPHTB saat tidak ada NTB
1 parent
7b6bd3c4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
payment_report/scripts/bphtb.py
payment_report/scripts/bphtb.py
View file @
396ca08
import
sys
import
sys
import
pdb
import
pdb
from
datetime
import
datetime
,
timedelta
,
date
from
datetime
import
(
datetime
,
timedelta
,
date
,
)
from
ISO8583.ISOErrors
import
BitNotSet
from
sqlalchemy
import
(
from
sqlalchemy
import
(
Column
,
Column
,
Integer
,
Integer
,
...
@@ -361,8 +366,12 @@ class App(BaseApp):
...
@@ -361,8 +366,12 @@ class App(BaseApp):
return
'0000'
,
channel
,
None
,
None
return
'0000'
,
channel
,
None
,
None
iso
=
get_iso
(
row
.
iso_request
,
Doc
,
self
.
option
.
debug
)
iso
=
get_iso
(
row
.
iso_request
,
Doc
,
self
.
option
.
debug
)
info
=
get_channel_info_by_iso
(
iso
)
info
=
get_channel_info_by_iso
(
iso
)
return
info
.
get
(
'bit_018'
,
'0000'
),
info
[
'channel'
],
iso
.
get_stan
(),
\
try
:
iso
.
get_ntb
()
ntb
=
iso
.
get_ntb
()
except
BitNotSet
:
ntb
=
None
channel_id
=
info
.
get
(
'bit_018'
,
'0000'
)
return
channel_id
,
info
[
'channel'
],
iso
.
get_stan
(),
ntb
def
get_iso_v2
(
self
):
def
get_iso_v2
(
self
):
if
not
self
.
base_q_log
:
if
not
self
.
base_q_log
:
...
...
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