Skip to content

Commit

Permalink
fix: Blanket order rate getting changed on converting to order
Browse files Browse the repository at this point in the history
(cherry picked from commit 9702a65)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Mar 10, 2024
1 parent b6e90c4 commit d8c6eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8c6eb0

Please sign in to comment.