Commit a26e712c by taufikyu

perbaikan public

1 parent 0efbc521
......@@ -396,4 +396,4 @@ def view_public(request):
## convert ke base64
qrcodebase64 = base64.b64encode(readqrcode) ##akan diouput ke html image
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)
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)
......@@ -226,17 +226,17 @@
<tr class="borderless">
<td>Pokok</td>
<td>:</td>
<td><b>${'{:n}'.format(data.pokok)}</b></td>
<td><b>${'{:n}'.format(jml_pokok)}</b></td>
</tr>
<tr class="borderless">
<td>Denda</td>
<td>:</td>
<td><b>${'{:n}'.format(data.bunga)}</b></td>
<td><b>${'{:n}'.format(jml_denda)}</b></td>
</tr>
<tr class="borderless">
<td>Jumlah</td>
<td>:</td>
<td><b>${'{:n}'.format(data.bayar)}</b></td>
<td><b>${'{:n}'.format(jml_bayar)}</b></td>
</tr>
</table>
</td>
......@@ -246,4 +246,4 @@
</div>
</tal:block>
</div>
</html>
</html>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!