fix_acc
watcha.h 2015-08-25 08:41:04 +07:00
parent 5f88d19d74
commit 52742b524d
1 changed files with 4 additions and 1 deletions

View File

@ -279,6 +279,9 @@ class PaymentMatching(Model):
break break
lines.append(vals) lines.append(vals)
no+=1 no+=1
pc=0
if total_invoice:
pc=(total_match_invoice/total_invoice)*100
data={ data={
'lines': lines, 'lines': lines,
'date_from': date_from, 'date_from': date_from,
@ -289,7 +292,7 @@ class PaymentMatching(Model):
'total_srv': total_srv, 'total_srv': total_srv,
'total_invoice': total_invoice, 'total_invoice': total_invoice,
'total_match_invoice': total_match_invoice, 'total_match_invoice': total_match_invoice,
'total_match_invoice_in_pc': (total_match_invoice/total_invoice)*100, 'total_match_invoice_in_pc': pc,
'total_unmatch_invoice': total_invoice-total_match_invoice, 'total_unmatch_invoice': total_invoice-total_match_invoice,
'total_amount': total_amount, 'total_amount': total_amount,
'view_type': view_type, 'view_type': view_type,