From c839177f8e0fe6750bbf9c37243d2b4d32f01158 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Mon, 22 Feb 2021 21:04:51 +0530 Subject: [PATCH] fix: Issue on posting inter-warehouse transfer invoice --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 9599d4ed0c..e591ba6bcb 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -1030,7 +1030,8 @@ class SalesInvoice(SellingController): ) def make_gle_for_rounding_adjustment(self, gl_entries): - if flt(self.rounding_adjustment, self.precision("rounding_adjustment")) and self.base_rounding_adjustment: + if flt(self.rounding_adjustment, self.precision("rounding_adjustment")) and self.base_rounding_adjustment \ + and not self.is_internal_transfer(): round_off_account, round_off_cost_center = \ get_round_off_account_and_cost_center(self.company)