mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
minor fix in credit limit
This commit is contained in:
@@ -212,7 +212,7 @@ def get_customer_outstanding(customer, company):
|
|||||||
from `tabSales Invoice Item`
|
from `tabSales Invoice Item`
|
||||||
where dn_detail = %s and docstatus = 1""", dn_item.name)[0][0]
|
where dn_detail = %s and docstatus = 1""", dn_item.name)[0][0]
|
||||||
|
|
||||||
if flt(dn_item.amount) > flt(si_amount):
|
if flt(dn_item.amount) > flt(si_amount) and dn_item.base_net_total:
|
||||||
outstanding_based_on_dn += ((flt(dn_item.amount) - flt(si_amount)) \
|
outstanding_based_on_dn += ((flt(dn_item.amount) - flt(si_amount)) \
|
||||||
/ dn_item.base_net_total) * dn_item.base_grand_total
|
/ dn_item.base_net_total) * dn_item.base_grand_total
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user