From d8c6eb0bf2699947e5301461fda3c8681fca83bf 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 (cherry picked from commit 9702a65a0ffc73a58cbae27d367f59c4928d0a69) --- 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 2906e49a222..9731b08f624 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