From 0ef004ce487ee2f48f0c2beef2def295dd10cc2a Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Fri, 30 Jan 2026 21:02:34 +0530 Subject: [PATCH] refactor(test): make gross profit deterministic --- erpnext/accounts/report/gross_profit/test_gross_profit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/report/gross_profit/test_gross_profit.py b/erpnext/accounts/report/gross_profit/test_gross_profit.py index 1f4bb22bbd9..ac1ca89b5e4 100644 --- a/erpnext/accounts/report/gross_profit/test_gross_profit.py +++ b/erpnext/accounts/report/gross_profit/test_gross_profit.py @@ -388,6 +388,7 @@ class TestGrossProfit(ERPNextTestSuite): report_output = {k: v for k, v in gp_entry[0].items() if k in expected_entry} self.assertEqual(report_output, expected_entry) + @ERPNextTestSuite.change_settings("Selling Settings", {"allow_multiple_items": True}) def test_crnote_against_invoice_with_multiple_instances_of_same_item(self): """ Item Qty for Sales Invoices with multiple instances of same item go in the -ve. Ideally, the credit noteshould cancel out the invoice items.