Commit 49895737 by Ari Agung Prasetiyo Committed by pbbm2

info dari candra, total denda hanya dari kolom denda atau bunga saja, tidak digabung

1 parent 415e7162
......@@ -184,7 +184,8 @@ class PaymentPAD(PCBase, models.CommonModel):
@classmethod
def qry_sum(cls, columns=[]):
columns.extend([func.sum(cls.jml_bayar).label('bayar'),
func.sum(cls.denda+cls.bunga).label('denda'),
#func.sum(cls.denda+cls.bunga).label('denda'),
func.sum(cls.denda).label('denda'),
func.count(cls.id).label('trx')])
qry = PCDBSession.query().select_from(cls)
for col in columns:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!