mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
fix: js error if user does not have write permission for date field
(cherry picked from commit 7f6f39f5e7)
# Conflicts:
# erpnext/buying/doctype/purchase_order/purchase_order.js
This commit is contained in:
@@ -828,3 +828,14 @@ frappe.ui.form.on("Purchase Order", "is_subcontracted", function (frm) {
|
|||||||
erpnext.buying.get_default_bom(frm);
|
erpnext.buying.get_default_bom(frm);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
|
||||||
|
function prevent_past_schedule_dates(frm) {
|
||||||
|
if (frm.doc.transaction_date) {
|
||||||
|
frm.fields_dict["schedule_date"].datepicker?.update({
|
||||||
|
minDate: new Date(frm.doc.transaction_date),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
>>>>>>> 7f6f39f5e7 (fix: js error if user does not have write permission for date field)
|
||||||
|
|||||||
Reference in New Issue
Block a user