brotherton-erpnext/erpnext/docs/user/manual/de/customize-erpnext/custom-scripts/custom-script-examples/restrict-purpose-of-stock-entry.md
2015-12-15 17:22:12 +05:30

322 B

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}