From 59b00e64618cd535422311bc70a63cf010fbf8d3 Mon Sep 17 00:00:00 2001 From: Sanket322 Date: Mon, 10 Feb 2025 13:45:35 +0530 Subject: [PATCH] fix: use base amount --- india_compliance/gst_india/overrides/sales_invoice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = _(