From e84d2eb982e58f294defc55c51ae28a668779a6f Mon Sep 17 00:00:00 2001 From: Mohamed Mansour <m.mansour@adito.de> Date: Wed, 7 Aug 2019 17:06:17 +0200 Subject: [PATCH] Fixed optional bug in Orderitem. --- .../Offeritem_entity/entityfields/optional/valueProcess.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entity/Offeritem_entity/entityfields/optional/valueProcess.js b/entity/Offeritem_entity/entityfields/optional/valueProcess.js index 31b2531af1..12b932905d 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 -- GitLab