mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
fix: next follow up date should be always greater then current time (#24308)
This commit is contained in:
@@ -24,6 +24,12 @@ frappe.ui.form.on("Opportunity", {
|
|||||||
frm.trigger('set_contact_link');
|
frm.trigger('set_contact_link');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
contact_date: function(frm) {
|
||||||
|
if(frm.doc.contact_date < frappe.datetime.now_datetime()){
|
||||||
|
frm.set_value("contact_date", "");
|
||||||
|
frappe.throw(__("Next follow up date should be greater than now."))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
onload_post_render: function(frm) {
|
onload_post_render: function(frm) {
|
||||||
frm.get_field("items").grid.set_multiple_add("item_code", "qty");
|
frm.get_field("items").grid.set_multiple_add("item_code", "qty");
|
||||||
|
|||||||
Reference in New Issue
Block a user