Commit 47ad17fe by aa.gusti

Merge branch 'sambat' of https://git.opensipkd.com/sugiana/iso8583-web into sambat

2 parents 0ce842ce fd9d5a89
......@@ -272,11 +272,28 @@ class View(BaseView):
inq = get_inquiry(data)
if not inq:
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:
pay = get_payment(data)
if not pay:
raise BillRefNotFound()
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()
method = get_method(data)
iso_func = getattr(conn.job, method)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!