Commit 05c46ef9 by aagusti

Merge branch 'master' of https://git.opensipkd.com/taufik/esipkd

2 parents 0fef72ea 751495c3
......@@ -332,6 +332,14 @@ def view_public(request):
url_dict = request.matchdict
found = False
row = ''
jml = ''
tahun=''
qrcodebase64=''
status_pembayaran=''
jml_pokok=''
jml_denda=''
jml_bayar=''
found=False
if url_dict['act'] == 'skrd':
if 'id' in params and params['id']:
......@@ -395,5 +403,8 @@ def view_public(request):
readqrcode = open(path, 'rb').read()
## convert ke base64
qrcodebase64 = base64.b64encode(readqrcode) ##akan diouput ke html image
jml_pokok = int(re.sub("\D", "", jml_pokok))
jml_denda = int(re.sub("\D", "", jml_denda))
jml_bayar = int(re.sub("\D", "", jml_bayar))
return dict(data=row, jml_terbilang=jml, tahun=tahun, qrcodebase64=qrcodebase64, status_pembayaran=status_pembayaran, jml_pokok=int(jml_pokok), jml_denda=int(jml_denda), jml_bayar=int(jml_bayar), found=found)
return dict(data=row, jml_terbilang=jml, tahun=tahun, qrcodebase64=qrcodebase64, status_pembayaran=status_pembayaran, jml_pokok=jml_pokok, jml_denda=jml_denda, jml_bayar=jml_bayar, found=found)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!