feat: Batch wise item pricing

This commit is contained in:
Deepesh Garg
2020-12-08 22:53:03 +05:30
parent 44276b4650
commit 91e1136d2c
3 changed files with 12 additions and 2 deletions

View File

@@ -1103,6 +1103,11 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
}
},
batch_no: function(doc, cdt, cdn) {
let item = frappe.get_doc(cdt, cdn);
this.apply_pricing_rule(item, true);
},
toggle_conversion_factor: function(item) {
// toggle read only property for conversion factor field if the uom and stock uom are same
if(this.frm.get_field('items').grid.fields_map.conversion_factor) {