Commit 1f8e56ae by Bangbadil

penyesuaian nilai bayar

1 parent b0b459de
...@@ -164,7 +164,7 @@ class Views(BaseView): ...@@ -164,7 +164,7 @@ class Views(BaseView):
step = mapped.get("step","") step = mapped.get("step","")
bayar = mapped.get("bayar", 0) bayar = mapped.get("bayar", 0)
denda = mapped.get("denda", 0) denda = mapped.get("denda", 0)
pokok = float(bayar) - denda pokok = float(bayar)
tx = mapped.get("trx",0) tx = mapped.get("trx",0)
daily.append((step, pokok)) daily.append((step, pokok))
dailyTrx.append((step, tx)) dailyTrx.append((step, tx))
...@@ -356,7 +356,6 @@ class Views(BaseView): ...@@ -356,7 +356,6 @@ class Views(BaseView):
ytd, ytdTrx, yearly, yearlyTrx, yearlyAcc, yearlyAccTrx = \ ytd, ytdTrx, yearly, yearlyTrx, yearlyAcc, yearlyAccTrx = \
self.get_daily_data(Sspd, field, str( self.get_daily_data(Sspd, field, str(
today.year), filter_exp, typ) today.year), filter_exp, typ)
#Bulanan #Bulanan
field = func.to_char(Sspd.sspdtgl, 'MM') field = func.to_char(Sspd.sspdtgl, 'MM')
month, monthTrx, monthly, monthlyTrx, monthlyAcc, monthlyAccTrx = \ month, monthTrx, monthly, monthlyTrx, monthlyAcc, monthlyAccTrx = \
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!