fix: Add Serial No button prompt (#20099)
This commit is contained in:
parent
a99f926a4b
commit
e944f7ac05
@ -139,7 +139,7 @@ erpnext.SerialNoBatchSelector = Class.extend({
|
|||||||
this.dialog.set_value('serial_no', d.serial_no);
|
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 => {
|
this.frm.doc.items.forEach(data => {
|
||||||
if(data.item_code == d.item_code) {
|
if(data.item_code == d.item_code) {
|
||||||
this.dialog.fields_dict.batches.df.data.push({
|
this.dialog.fields_dict.batches.df.data.push({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user