mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
12 lines
278 B
Markdown
12 lines
278 B
Markdown
---
|
|
{
|
|
"_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;
|
|
}
|
|
} |