Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
iso8583-web
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 47ad17fe
authored
Sep 07, 2020
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'sambat' of
https://git.opensipkd.com/sugiana/iso8583-web
into sambat
2 parents
0ce842ce
fd9d5a89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
iso8583_web/scripts/views/linkaja/__init__.py
iso8583_web/scripts/views/linkaja/__init__.py
View file @
47ad17f
...
@@ -272,11 +272,28 @@ class View(BaseView):
...
@@ -272,11 +272,28 @@ class View(BaseView):
inq
=
get_inquiry
(
data
)
inq
=
get_inquiry
(
data
)
if
not
inq
:
if
not
inq
:
raise
BillRefNotFound
()
raise
BillRefNotFound
()
#ditambahkan karena harus sesuai dengan inq
DBSession
=
get_db_session
()
iso_log
=
DBSession
.
query
(
Log
)
.
\
filter
(
Log
.
rpc_id
==
inq
.
id
,
Log
.
bit_062
!=
None
)
.
first
()
if
not
iso_log
:
raise
BillRefNotFound
()
p
[
'bits'
]
=
{
"62"
:
iso_log
.
bit_062
,
"37"
:
""
.
join
([
'000000'
,
iso_log
.
bit_011
])}
else
:
else
:
pay
=
get_payment
(
data
)
pay
=
get_payment
(
data
)
if
not
pay
:
if
not
pay
:
raise
BillRefNotFound
()
raise
BillRefNotFound
()
p
[
'stan'
]
=
pay
.
stan
p
[
'stan'
]
=
pay
.
stan
# ditambahkan disini untuk ngisi user dan cabang
if
'bits'
not
in
p
:
p
[
'bits'
]
=
{}
p
[
'bits'
][
'107'
]
=
'LINKAJA'
p
[
'bits'
][
'49'
]
=
'AGRATEK-LINKAJA'
conn
=
self
.
get_connection
()
conn
=
self
.
get_connection
()
method
=
get_method
(
data
)
method
=
get_method
(
data
)
iso_func
=
getattr
(
conn
.
job
,
method
)
iso_func
=
getattr
(
conn
.
job
,
method
)
...
...
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