diff --git a/entity/Offeritem_entity/entityfields/optional/valueProcess.js b/entity/Offeritem_entity/entityfields/optional/valueProcess.js index 31b2531af1ad332b9ab67942d5a89d742c9ab368..12b932905d245ce1716f5334f4d4e5fd12d8e66c 100644 --- a/entity/Offeritem_entity/entityfields/optional/valueProcess.js +++ b/entity/Offeritem_entity/entityfields/optional/valueProcess.js @@ -2,5 +2,6 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) - result.string("0"); \ No newline at end of file +if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null){ + result.string("0"); +} \ No newline at end of file