Create restrict-purpose-of-stock-entry.md

This commit is contained in:
Martin Ender 2015-12-14 16:30:28 +01:00 committed by Anand Doshi
parent 314fa2bdad
commit 9b639b82cf

View File

@ -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}