fix: item not showing in popup while making batch

This commit is contained in:
Rohit Waghchaure 2020-03-27 12:54:01 +05:30
parent da6fb435dd
commit a5357c2e27

View File

@ -165,6 +165,16 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
return (doc.rule_applied) ? "green" : "red";
});
}
let batch_no_field = this.frm.get_docfield("items", "batch_no");
if (batch_no_field) {
batch_no_field.get_route_options_for_new_doc = function(row) {
return {
"item": row.doc.item_code
}
};
}
},
onload: function() {
var me = this;