fix: Add Serial No button prompt (#20099)

This commit is contained in:
Rohan 2019-12-27 12:34:36 +05:30 committed by Nabin Hait
parent a99f926a4b
commit e944f7ac05

View File

@ -139,7 +139,7 @@ erpnext.SerialNoBatchSelector = Class.extend({
this.dialog.set_value('serial_no', d.serial_no);
}
if (d.batch_no) {
if (d.has_batch_no && d.batch_no) {
this.frm.doc.items.forEach(data => {
if(data.item_code == d.item_code) {
this.dialog.fields_dict.batches.df.data.push({