From 551639da7b1f5fb60f18d5339c5551d13fb533c8 Mon Sep 17 00:00:00 2001 From: Sagar Vora <16315650+sagarvora@users.noreply.github.com> Date: Tue, 22 Apr 2025 17:04:16 +0530 Subject: [PATCH] chore: remove previously added logger calls --- erpnext/controllers/taxes_and_totals.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/erpnext/controllers/taxes_and_totals.py b/erpnext/controllers/taxes_and_totals.py index 57acfc6db71..239e47b15ac 100644 --- a/erpnext/controllers/taxes_and_totals.py +++ b/erpnext/controllers/taxes_and_totals.py @@ -21,8 +21,6 @@ from erpnext.deprecation_dumpster import deprecated from erpnext.stock.get_item_details import ItemDetailsCtx, _get_item_tax_template, get_item_tax_map from erpnext.utilities.regional import temporary_flag -logger = frappe.logger(__name__) - ItemWiseTaxDetail = frappe._dict @@ -397,10 +395,8 @@ class calculate_taxes_and_totals: ] ) - logger.debug(f"{self.doc} ...") for n, item in enumerate(self._items): item_tax_map = self._load_item_tax_rate(item.item_tax_rate) - logger.debug(f" Item {n}: {item.item_code}" + (f" - {item_tax_map}" if item_tax_map else "")) for i, tax in enumerate(doc.taxes): # tax_amount represents the amount of tax for the current step current_net_amount, current_tax_amount = self.get_current_tax_and_net_amount( @@ -443,10 +439,6 @@ class calculate_taxes_and_totals: doc.taxes[i - 1].grand_total_for_current_item + current_tax_amount ) - logger.debug( - f" net_amount: {current_net_amount:<20} tax_amount: {current_tax_amount:<20} - {tax.description}" - ) - discount_amount_applied = self.discount_amount_applied if doc.apply_discount_on == "Grand Total" and ( discount_amount_applied or doc.discount_amount or doc.additional_discount_percentage