From ac176a799d7d4f9376cc5602f12d37d15c0f2e98 Mon Sep 17 00:00:00 2001 From: Ravindu Nethmina <117300601+NethminaHiker360@users.noreply.github.com> Date: Mon, 28 Oct 2024 08:08:32 +0000 Subject: [PATCH] add "margin_type" and "margin_rate_or_amount" fields to field_no_map array --- erpnext/selling/doctype/sales_order/sales_order.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index 747eb28c55e0..3c737802272b 100755 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -1364,6 +1364,8 @@ def update_item(source, target, source_parent): "discount_percentage", "discount_amount", "pricing_rules", + "margin_type", + "margin_rate_or_amount", ], "postprocess": update_item, "condition": lambda doc: doc.ordered_qty < doc.stock_qty