Merge pull request #40355 from deepeshgarg007/blanket_order_rate

fix: Blanket order rate getting changed on converting to order
This commit is contained in:
Deepesh Garg
2024-03-10 18:44:11 +05:30
committed by GitHub

View File

@@ -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