Merge pull request #17549 from sunhoww/pos_batch

fix: POS batch not set correctly
This commit is contained in:
rohitwaghchaure
2019-05-10 14:14:44 +05:30
committed by GitHub

View File

@@ -1957,6 +1957,12 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
}],
function(values){
me.item_batch_no[me.items[0].item_code] = values.batch;
const item = me.frm.doc.items.find(
({ item_code }) => item_code === me.items[0].item_code
);
if (item) {
item.batch_no = values.batch;
}
},
__('Select Batch No'))
}