fix: filter serial no based on batch no

This commit is contained in:
vishal
2020-02-11 11:44:24 +05:30
parent c688f9f584
commit 998de83d48
2 changed files with 5 additions and 4 deletions

View File

@@ -90,7 +90,8 @@ erpnext.SerialNoBatchSelector = Class.extend({
args: {
qty: qty,
item_code: me.item_code,
warehouse: me.warehouse_details.name
warehouse: me.warehouse_details.name,
batch_no: me.item.batch_no || null
}
});
@@ -392,7 +393,7 @@ erpnext.SerialNoBatchSelector = Class.extend({
delivery_document_no: ""
}
if (this.has_batch) {
if (this.item.batch_no) {
serial_no_filters["batch_no"] = this.item.batch_no;
}