Create restrict-purpose-of-stock-entry.md
This commit is contained in:
parent
314fa2bdad
commit
9b639b82cf
@ -0,0 +1,10 @@
|
|||||||
|
## 15.3.1.6 Anliegen der Lagerbuchung einschränken
|
||||||
|
|
||||||
|
frappe.ui.form.on("Material Request", "validate", function(frm) {
|
||||||
|
if(user=="user1@example.com" && frm.doc.purpose!="Material Receipt") {
|
||||||
|
msgprint("You are only allowed Material Receipt");
|
||||||
|
throw "Not allowed";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{next}
|
||||||
Loading…
x
Reference in New Issue
Block a user