Create restrict-purpose-of-stock-entry.md
diff --git a/erpnext/docs/user/manual/de/customize-erpnext/custom-scripts/custom-script-examples/restrict-purpose-of-stock-entry.md b/erpnext/docs/user/manual/de/customize-erpnext/custom-scripts/custom-script-examples/restrict-purpose-of-stock-entry.md
new file mode 100644
index 0000000..a1b2c51
--- /dev/null
+++ b/erpnext/docs/user/manual/de/customize-erpnext/custom-scripts/custom-script-examples/restrict-purpose-of-stock-entry.md
@@ -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}