Merge pull request #18091 from rohitwaghchaure/same_taxes_adding_multiple_times_in_pos
fix: same taxes adding multiple times in pos
This commit is contained in:
@@ -1290,10 +1290,13 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
},
|
},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if(!r.exc) {
|
if(!r.exc) {
|
||||||
for (let tax of r.message) {
|
me.frm.set_value("taxes", r.message);
|
||||||
me.frm.add_child("taxes", tax);
|
|
||||||
|
if(me.frm.doc.shipping_rule) {
|
||||||
|
me.frm.script_manager.trigger("shipping_rule");
|
||||||
|
} else {
|
||||||
|
me.calculate_taxes_and_totals();
|
||||||
}
|
}
|
||||||
me.calculate_taxes_and_totals();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user