From 21d8234b0844d9c2a6401ef18ed1e59e78677242 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 24 Sep 2024 16:31:27 +0200 Subject: [PATCH] test: adapt pos invoice text --- .../pos_invoice_merge_log/test_pos_invoice_merge_log.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py index 904d8e83b9c0..7d29e81e2947 100644 --- a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py +++ b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py @@ -146,13 +146,15 @@ def test_consolidated_invoice_item_taxes(self): consolidated_invoice = frappe.get_doc("Sales Invoice", inv.consolidated_invoice) item_wise_tax_detail = json.loads(consolidated_invoice.get("taxes")[0].item_wise_tax_detail) - tax_rate, amount = item_wise_tax_detail.get("_Test Item") + tax_rate, amount, net_amount = item_wise_tax_detail.get("_Test Item") self.assertEqual(tax_rate, 9) self.assertEqual(amount, 9) + self.assertEqual(net_amount, 100) - tax_rate2, amount2 = item_wise_tax_detail.get("_Test Item 2") + tax_rate2, amount2, net_amount2 = item_wise_tax_detail.get("_Test Item 2") self.assertEqual(tax_rate2, 5) self.assertEqual(amount2, 5) + self.assertEqual(net_amount2, 100) finally: frappe.set_user("Administrator") frappe.db.sql("delete from `tabPOS Profile`")