mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 14:08:29 +00:00
(cherry picked from commit 60fb71bd2a)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -12,6 +12,9 @@ frappe.ui.form.on('Maintenance Visit', {
|
||||
// filters for serial no based on item code
|
||||
if (frm.doc.maintenance_type === "Scheduled") {
|
||||
let item_code = frm.doc.purposes[0].item_code;
|
||||
if (!item_code) {
|
||||
return;
|
||||
}
|
||||
frappe.call({
|
||||
method: "erpnext.maintenance.doctype.maintenance_schedule.maintenance_schedule.get_serial_nos_from_schedule",
|
||||
args: {
|
||||
|
||||
Reference in New Issue
Block a user