fix: add serial no button not working

This commit is contained in:
Rohit Waghchaure
2020-01-23 15:49:39 +05:30
parent 87fe2143be
commit 89f42eef49

View File

@@ -316,7 +316,7 @@ erpnext.SerialNoBatchSelector = Class.extend({
frappe.call({
method: 'erpnext.stock.doctype.batch.batch.get_batch_qty',
args: {
batch_no: this.doc.batch_no,
batch_no: me.item.batch_no,
warehouse: me.warehouse_details.name,
item_code: me.item_code
},
@@ -392,6 +392,10 @@ erpnext.SerialNoBatchSelector = Class.extend({
delivery_document_no: ""
}
if (this.has_batch) {
serial_no_filters["batch_no"] = this.item.batch_no;
}
if (me.warehouse_details.name) {
serial_no_filters['warehouse'] = me.warehouse_details.name;
}