From 9631ffd215de8a23bbeb8e25ce8ba8e7262f2877 Mon Sep 17 00:00:00 2001 From: Maharshi Patel Date: Sun, 17 Jul 2022 15:40:55 +0530 Subject: [PATCH] fix: test change setting to run test with correct use case. --- erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py index 98dd30c7fbe..0a5172eaba6 100644 --- a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py @@ -2623,6 +2623,8 @@ class TestSalesInvoice(unittest.TestCase): def test_einvoice_discounts(self): from erpnext.regional.india.e_invoice.utils import make_einvoice, validate_totals + frappe.db.set_single_value("E Invoice Settings", "dont_show_discounts_in_e_invoice", False) + # Normal Itemized Discount si = get_sales_invoice_for_e_invoice() si.apply_discount_on = ""