refactor: serial no normalization

This commit is contained in:
Rohit Waghchaure
2022-10-10 13:28:19 +05:30
parent f11d9b019d
commit bc75a7ef44
23 changed files with 980 additions and 133 deletions

View File

@@ -119,9 +119,14 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
}
});
if(this.frm.fields_dict["items"].grid.get_field('batch_no')) {
this.frm.set_query("batch_no", "items", function(doc, cdt, cdn) {
return me.set_query_for_batch(doc, cdt, cdn);
if(this.frm.fields_dict["items"].grid.get_field('serial_and_batch_bundle')) {
this.frm.set_query("serial_and_batch_bundle", "items", function(doc, cdt, cdn) {
let item_row = locals[cdt][cdn];
return {
filters: {
'item_code': item_row.item_code
}
}
});
}