Commit 4532131f by aa.gusti

pengambilan bit 37 dan 62 dari data inquiry

1 parent d99457b1
......@@ -272,6 +272,15 @@ 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:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!