fix: Blanket order rate getting changed on converting to order
This commit is contained in:
@@ -17,7 +17,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
|
|
||||||
frappe.model.round_floats_in(item, ["rate", "price_list_rate"]);
|
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(item.rate > item.price_list_rate && has_margin_field) {
|
||||||
// if rate is greater than price_list_rate, set margin
|
// if rate is greater than price_list_rate, set margin
|
||||||
// or set discount
|
// or set discount
|
||||||
|
|||||||
Reference in New Issue
Block a user