From b6d7d5ae2e2a513a31c4fa40fda0480090485059 Mon Sep 17 00:00:00 2001 From: "p.neub" <p.neub@adito.de> Date: Thu, 30 Sep 2021 15:19:18 +0200 Subject: [PATCH] [Projekt: xRM-Sales][TicketNr.: 2001092][Offer Discount kann immer noch bearbeitet werden wenn offer status lost] --- entity/Offer_entity/Offer_entity.aod | 1 + entity/Offer_entity/entityfields/discount/stateProcess.js | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 entity/Offer_entity/entityfields/discount/stateProcess.js diff --git a/entity/Offer_entity/Offer_entity.aod b/entity/Offer_entity/Offer_entity.aod index 3eeea68776..18e08a0f7e 100644 --- a/entity/Offer_entity/Offer_entity.aod +++ b/entity/Offer_entity/Offer_entity.aod @@ -957,6 +957,7 @@ <contentType>NUMBER</contentType> <outputFormat>0.00'%'</outputFormat> <inputFormat>0.00</inputFormat> + <stateProcess>%aditoprj%/entity/Offer_entity/entityfields/discount/stateProcess.js</stateProcess> <valueProcess>%aditoprj%/entity/Offer_entity/entityfields/discount/valueProcess.js</valueProcess> <onValueChange>%aditoprj%/entity/Offer_entity/entityfields/discount/onValueChange.js</onValueChange> <onValueChangeTypes> diff --git a/entity/Offer_entity/entityfields/discount/stateProcess.js b/entity/Offer_entity/entityfields/discount/stateProcess.js new file mode 100644 index 0000000000..8c131df635 --- /dev/null +++ b/entity/Offer_entity/entityfields/discount/stateProcess.js @@ -0,0 +1,6 @@ +import("system.vars"); +import("system.result"); +import("system.neon"); +import("Offer_lib"); + +result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED); -- GitLab