Checkbox has_expiry_date in Item to make suer Expiry Date is entered in Batch (#11413)
This commit is contained in:
parent
1077c782a3
commit
e59c9ce9f4
@ -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
Loading…
Reference in New Issue
Block a user