fix: Shipping Rule picking up old net_rate
(cherry picked from commit c78b8b7897)
# Conflicts:
# erpnext/public/js/controllers/taxes_and_totals.js
# erpnext/public/js/controllers/transaction.js
This commit is contained in:
@@ -1065,17 +1065,16 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
||||
return this.frm.call({
|
||||
doc: this.frm.doc,
|
||||
method: "apply_shipping_rule",
|
||||
callback: function(r) {
|
||||
if(!r.exc) {
|
||||
me.calculate_taxes_and_totals();
|
||||
}
|
||||
}
|
||||
}).fail(() => this.frm.set_value('shipping_rule', ''));
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
else {
|
||||
me.calculate_taxes_and_totals();
|
||||
}
|
||||
},
|
||||
=======
|
||||
}
|
||||
>>>>>>> c78b8b7897 (fix: Shipping Rule picking up old net_rate)
|
||||
|
||||
set_margin_amount_based_on_currency: function(exchange_rate) {
|
||||
if (in_list(["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Purchase Invoice", "Purchase Order", "Purchase Receipt"]), this.frm.doc.doctype) {
|
||||
|
||||
Reference in New Issue
Block a user