mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 17:53:49 +00:00
278 B
278 B
_label
| _label |
|---|
| Restrict Purpose of Stock Entry |
cur_frm.cscript.custom_validate = function(doc) {
if(user=="user1@example.com" && doc.purpose!="Material Receipt") {
msgprint("You are only allowed Material Receipt");
validated = false;
}
}