Commit af0493f2 by iwan

Update rpc.py

1 parent 8a9a3595
...@@ -331,9 +331,9 @@ def create_qris(request, data): ...@@ -331,9 +331,9 @@ def create_qris(request, data):
pokok, denda = calculate_tagihan(dict(pokok=row.jumlah,jatuh_tempo=row.jatuh_tempo)) pokok, denda = calculate_tagihan(dict(pokok=row.jumlah,jatuh_tempo=row.jatuh_tempo))
if row.jatuh_tempo < date.today(): if row.jatuh_tempo < date.today():
jatuh_tempo = ymdhms(datetime.combine(date.today(),time(23,55,00))) jatuh_tempo = ymdhms(datetime.combine(date.today(),time(20,21,00)))
else: else:
jatuh_tempo = ymdhms(datetime.combine(row.jatuh_tempo,time(23,55,00))) jatuh_tempo = ymdhms(datetime.combine(row.jatuh_tempo,time(20,21,00)))
expired_date = jatuh_tempo expired_date = jatuh_tempo
dt_qris = dict(client_type ="3", dt_qris = dict(client_type ="3",
...@@ -422,9 +422,9 @@ def create_va(request, data): ...@@ -422,9 +422,9 @@ def create_va(request, data):
pokok, denda = calculate_tagihan(dict(pokok=row.jumlah,jatuh_tempo=row.jatuh_tempo)) pokok, denda = calculate_tagihan(dict(pokok=row.jumlah,jatuh_tempo=row.jatuh_tempo))
if row.jatuh_tempo < date.today(): if row.jatuh_tempo < date.today():
jatuh_tempo = ymdhms(datetime.combine(date.today(),time(23,55,00))) jatuh_tempo = ymdhms(datetime.combine(date.today(),time(20,21,00)))
else: else:
jatuh_tempo = ymdhms(datetime.combine(row.jatuh_tempo,time(23,55,00))) jatuh_tempo = ymdhms(datetime.combine(row.jatuh_tempo,time(20,21,00)))
expired_date = jatuh_tempo expired_date = jatuh_tempo
dt_va = dict(client_type ="3", dt_va = dict(client_type ="3",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!