fix
parent
5f88d19d74
commit
52742b524d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue