From 9702a65a0ffc73a58cbae27d367f59c4928d0a69 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Sun, 10 Mar 2024 17:39:20 +0530 Subject: [PATCH] fix: Blanket order rate getting changed on converting to order --- erpnext/public/js/controllers/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 77391101424..f43e3e7c922 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -17,7 +17,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe frappe.model.round_floats_in(item, ["rate", "price_list_rate"]); - if(item.price_list_rate) { + if(item.price_list_rate && !item.blanket_order_rate) { if(item.rate > item.price_list_rate && has_margin_field) { // if rate is greater than price_list_rate, set margin // or set discount