Checkbox has_expiry_date in Item to make suer Expiry Date is entered in Batch (#11413)

This commit is contained in:
KanchanChauhan 2017-11-10 11:16:29 +05:30 committed by Nabin Hait
parent 1077c782a3
commit e59c9ce9f4
2 changed files with 3312 additions and 3276 deletions

View File

@ -24,6 +24,11 @@ frappe.ui.form.on('Batch', {
frm.trigger('make_dashboard');
}
},
item: (frm) => {
frappe.db.get_value('Item', {name: frm.doc.item}, 'has_expiry_date', (r) => {
frm.toggle_reqd('expiry_date', r.has_expiry_date);
});
},
make_dashboard: (frm) => {
if(!frm.is_new()) {
frappe.call({

File diff suppressed because it is too large Load Diff