brotherton-erpnext/erpnext/docs/user/manual/de/customize-erpnext/custom-scripts/custom-script-examples/restrict-purpose-of-stock-entry.md

431 B

Anliegen der Lagerbuchung einschränken

Beigetragen von CWT Connector & Wire Technology GmbH

frappe.ui.form.on("Material Request", "validate", function(frm) {
    if(user=="user1@example.com" && frm.doc.purpose!="Material Receipt") {
        frappe.msgprint("You are only allowed Material Receipt");
        frappe.throw(__("Not allowed"));
    }
}

{next}