Update generate-code-based-on-custom-logic.md

This commit is contained in:
Martin Ender
2015-12-14 16:26:02 +01:00
committed by Anand Doshi
parent 670269f85c
commit 89d64f5b12

View File

@@ -4,9 +4,7 @@ Fügen Sie diesen Kode so in einem benutzerdefinierten Skript eines Artikels hin
(Vielen Dank an Aditya Duggal)
cur_frm.cscript.custom_validate = function(doc) {
cur_frm.cscript.custom_validate = function(doc) {
// clear item_code (name is from item_code)
doc.item_code = "";
@@ -33,6 +31,6 @@ cur_frm.cscript.custom_validate = function(doc) {
default:
doc.item_code += "BX";
}
}
}
{next}