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