From 370bbf9264a6521f48152483b55bf1c6e34d4a40 Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Fri, 28 Jun 2019 10:15:46 +0200 Subject: [PATCH] presets in offer --- entity/Offer_entity/entityfields/currency/valueProcess.js | 3 ++- entity/Offer_entity/entityfields/status/valueProcess.js | 3 ++- process/KeywordRegistry_basic/process.js | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/entity/Offer_entity/entityfields/currency/valueProcess.js b/entity/Offer_entity/entityfields/currency/valueProcess.js index 787ece941a..2f2451289c 100644 --- a/entity/Offer_entity/entityfields/currency/valueProcess.js +++ b/entity/Offer_entity/entityfields/currency/valueProcess.js @@ -1,6 +1,7 @@ import("system.neon"); import("system.result"); import("system.vars"); +import("KeywordRegistry_basic"); if (vars.exists("$param.OfferCurrency_param") && vars.get("$param.OfferCurrency_param")) { @@ -8,5 +9,5 @@ if (vars.exists("$param.OfferCurrency_param") && vars.get("$param.OfferCurrency_ } else if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value")) { - result.string("EUR"); + result.string($KeywordRegistry.currency$eur()); } \ No newline at end of file diff --git a/entity/Offer_entity/entityfields/status/valueProcess.js b/entity/Offer_entity/entityfields/status/valueProcess.js index ef4ec27fb0..57f4b66b2e 100644 --- a/entity/Offer_entity/entityfields/status/valueProcess.js +++ b/entity/Offer_entity/entityfields/status/valueProcess.js @@ -1,6 +1,7 @@ import("system.neon"); import("system.vars"); import("system.result"); +import("KeywordRegistry_basic"); if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value")) - result.string("70d27a1b-7233-481d-826f-01a13a4bb0b2"); //Open \ No newline at end of file + result.string($KeywordRegistry.offerStatus$open()); //Open \ No newline at end of file diff --git a/process/KeywordRegistry_basic/process.js b/process/KeywordRegistry_basic/process.js index c4ff38fb43..9678ae2347 100644 --- a/process/KeywordRegistry_basic/process.js +++ b/process/KeywordRegistry_basic/process.js @@ -34,6 +34,7 @@ $KeywordRegistry.contactStatus = function(){return "ContactStatus";}; $KeywordRegistry.contactStatus$active = function(){return "CONTACTSTATACTIVE";}; $KeywordRegistry.currency = function(){return "Currency";}; +$KeywordRegistry.currency$eur = function(){return "EUR ";}; $KeywordRegistry.productGroupcode = function(){return "ProductGroupcode";}; $KeywordRegistry.offerStatus = function(){return "OfferStatus";}; $KeywordRegistry.offerStatus$open = function(){return "OFFERSTATOPEN ";}; -- GitLab