Commit 89219106 by taufikyu

perbaikan epap

1 parent 10275c71
......@@ -369,6 +369,13 @@ def view_edit(request):
))
val['amount'] = (val['bea_pok_pjk']+val['bea_den_pjk'])
cekpap = Pap.query().filter(Pap.kd_bayar==val['kd_bayar']).first()
if not cekpap:
cekpap = Pap()
cekpap.from_dict(val)
DBSession.add(cekpap)
DBSession.flush()
row = BJBVA.create_va(val, rpc_params())
if row:
request.session.flash('BJBVA No. %s sudah ditambahkan.' % row.va_number)
......@@ -389,6 +396,13 @@ def view_edit(request):
))
val['amount'] = (val['bea_pok_pjk']+val['bea_den_pjk'])
cekpap = Pap.query().filter(Pap.kd_bayar==val['kd_bayar']).first()
if not cekpap:
cekpap = Pap()
cekpap.from_dict(val)
DBSession.add(cekpap)
DBSession.flush()
row = BJBQRIS.create_va(val, rpc_params())
if row:
request.session.flash('BJBQRIS No. %s sudah ditambahkan.' % row.va_number)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!