Merge pull request #21077 from rohitwaghchaure/default_item_is_not_coming_while_making_new_bom_develop

fix: item not showing in popup while making batch
This commit is contained in:
rohitwaghchaure 2020-03-27 13:49:23 +05:30 committed by GitHub
commit 0fc8b2af60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;