Mjara Docs
User GuideManualEnglish DocumentationPoint of Sale

Restrict Purpose Of Stock Entry

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

Last updated 3 weeks agoWas this helpful?

Submit

Thanks!