From 6a05932f504b1a13062ecb086e422763e706953b Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Mon, 15 Jul 2019 09:05:41 +0200 Subject: [PATCH] fix: product-boolean not working --- entity/Prod2prod_entity/entityfields/optional/valueProcess.js | 2 +- entity/Prod2prod_entity/entityfields/takeprice/valueProcess.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entity/Prod2prod_entity/entityfields/optional/valueProcess.js b/entity/Prod2prod_entity/entityfields/optional/valueProcess.js index 31b2531af1a..a26e8321a9b 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 31b2531af1a..a26e8321a9b 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 -- GitLab