diff --git a/india_compliance/gst_india/overrides/sales_invoice.py b/india_compliance/gst_india/overrides/sales_invoice.py index 4619b3044..d1393a1ef 100644 --- a/india_compliance/gst_india/overrides/sales_invoice.py +++ b/india_compliance/gst_india/overrides/sales_invoice.py @@ -357,7 +357,9 @@ def set_and_validate_advances_with_gst(doc): allocated_amount_with_taxes += advance.allocated_amount excess_allocation = flt( - flt(allocated_amount_with_taxes, 2) - (doc.rounded_total or doc.grand_total), 2 + flt(allocated_amount_with_taxes, 2) + - (doc.base_rounded_total or doc.base_grand_total), + 2, ) if excess_allocation > 0: message = _(