From c17c7150b2d0ca6e5c9d885b715e9c59a083a417 Mon Sep 17 00:00:00 2001 From: Pascal Neub <p.neub@adito.de> Date: Tue, 25 May 2021 05:22:02 +0000 Subject: [PATCH] [Projekt: xRM-Sales][TicketNr.: 1080416][Tab Aufgaben soll immer angezeigt werden] --- entity/CampaignStep_entity/CampaignStep_entity.aod | 1 - .../entityfields/tasks/stateProcess.js | 10 ---------- entity/Contract_entity/Contract_entity.aod | 1 - .../Contract_entity/entityfields/tasks/stateProcess.js | 10 ---------- entity/Offer_entity/Offer_entity.aod | 1 - entity/Offer_entity/entityfields/tasks/stateProcess.js | 10 ---------- entity/Order_entity/Order_entity.aod | 1 - entity/Order_entity/entityfields/tasks/stateProcess.js | 10 ---------- entity/Product_entity/Product_entity.aod | 1 - .../Product_entity/entityfields/tasks/stateProcess.js | 10 ---------- entity/Salesproject_entity/Salesproject_entity.aod | 1 - .../entityfields/tasks/stateProcess.js | 10 ---------- 12 files changed, 66 deletions(-) delete mode 100644 entity/CampaignStep_entity/entityfields/tasks/stateProcess.js delete mode 100644 entity/Contract_entity/entityfields/tasks/stateProcess.js delete mode 100644 entity/Offer_entity/entityfields/tasks/stateProcess.js delete mode 100644 entity/Order_entity/entityfields/tasks/stateProcess.js delete mode 100644 entity/Product_entity/entityfields/tasks/stateProcess.js delete mode 100644 entity/Salesproject_entity/entityfields/tasks/stateProcess.js diff --git a/entity/CampaignStep_entity/CampaignStep_entity.aod b/entity/CampaignStep_entity/CampaignStep_entity.aod index ddef5bb760..c090c20d4c 100644 --- a/entity/CampaignStep_entity/CampaignStep_entity.aod +++ b/entity/CampaignStep_entity/CampaignStep_entity.aod @@ -257,7 +257,6 @@ <entityConsumer> <name>Tasks</name> <title>Tasks</title> - <stateProcess>%aditoprj%/entity/CampaignStep_entity/entityfields/tasks/stateProcess.js</stateProcess> <dependency> <name>dependency</name> <entityName>Task_entity</entityName> diff --git a/entity/CampaignStep_entity/entityfields/tasks/stateProcess.js b/entity/CampaignStep_entity/entityfields/tasks/stateProcess.js deleted file mode 100644 index 24d86976c9..0000000000 --- a/entity/CampaignStep_entity/entityfields/tasks/stateProcess.js +++ /dev/null @@ -1,10 +0,0 @@ -import("system.result"); -import("system.neon"); -import("system.vars"); -import("ActivityTask_lib"); -import("Context_lib"); - -if (TaskUtils.hasTasks(vars.get("$field.CAMPAIGNSTEPID"), ContextUtils.getCurrentContextId())) - result.string(neon.COMPONENTSTATE_EDITABLE); -else - result.string(neon.COMPONENTSTATE_INVISIBLE); \ No newline at end of file diff --git a/entity/Contract_entity/Contract_entity.aod b/entity/Contract_entity/Contract_entity.aod index 0b5a6a6d22..65416c1c51 100644 --- a/entity/Contract_entity/Contract_entity.aod +++ b/entity/Contract_entity/Contract_entity.aod @@ -332,7 +332,6 @@ </entityConsumer> <entityConsumer> <name>Tasks</name> - <stateProcess>%aditoprj%/entity/Contract_entity/entityfields/tasks/stateProcess.js</stateProcess> <dependency> <name>dependency</name> <entityName>Task_entity</entityName> diff --git a/entity/Contract_entity/entityfields/tasks/stateProcess.js b/entity/Contract_entity/entityfields/tasks/stateProcess.js deleted file mode 100644 index 1b34404a38..0000000000 --- a/entity/Contract_entity/entityfields/tasks/stateProcess.js +++ /dev/null @@ -1,10 +0,0 @@ -import("system.result"); -import("system.neon"); -import("system.vars"); -import("ActivityTask_lib"); -import("Context_lib"); - -if(TaskUtils.hasTasks(vars.get("$field.CONTRACTID"), ContextUtils.getCurrentContextId())) - result.string(neon.COMPONENTSTATE_EDITABLE); -else - result.string(neon.COMPONENTSTATE_INVISIBLE); \ No newline at end of file diff --git a/entity/Offer_entity/Offer_entity.aod b/entity/Offer_entity/Offer_entity.aod index 04e18008a2..de9acec821 100644 --- a/entity/Offer_entity/Offer_entity.aod +++ b/entity/Offer_entity/Offer_entity.aod @@ -503,7 +503,6 @@ </entityConsumer> <entityConsumer> <name>Tasks</name> - <stateProcess>%aditoprj%/entity/Offer_entity/entityfields/tasks/stateProcess.js</stateProcess> <dependency> <name>dependency</name> <entityName>Task_entity</entityName> diff --git a/entity/Offer_entity/entityfields/tasks/stateProcess.js b/entity/Offer_entity/entityfields/tasks/stateProcess.js deleted file mode 100644 index fca9129ea6..0000000000 --- a/entity/Offer_entity/entityfields/tasks/stateProcess.js +++ /dev/null @@ -1,10 +0,0 @@ -import("system.result"); -import("system.neon"); -import("system.vars"); -import("ActivityTask_lib"); -import("Context_lib"); - -if(TaskUtils.hasTasks(vars.get("$field.OFFERID"), ContextUtils.getCurrentContextId())) - result.string(neon.COMPONENTSTATE_EDITABLE); -else - result.string(neon.COMPONENTSTATE_INVISIBLE); \ No newline at end of file diff --git a/entity/Order_entity/Order_entity.aod b/entity/Order_entity/Order_entity.aod index e1f343fcba..52f23b22af 100644 --- a/entity/Order_entity/Order_entity.aod +++ b/entity/Order_entity/Order_entity.aod @@ -313,7 +313,6 @@ </entityField> <entityConsumer> <name>Tasks</name> - <stateProcess>%aditoprj%/entity/Order_entity/entityfields/tasks/stateProcess.js</stateProcess> <dependency> <name>dependency</name> <entityName>Task_entity</entityName> diff --git a/entity/Order_entity/entityfields/tasks/stateProcess.js b/entity/Order_entity/entityfields/tasks/stateProcess.js deleted file mode 100644 index 01f44a3090..0000000000 --- a/entity/Order_entity/entityfields/tasks/stateProcess.js +++ /dev/null @@ -1,10 +0,0 @@ -import("system.result"); -import("system.neon"); -import("system.vars"); -import("ActivityTask_lib"); -import("Context_lib"); - -if(TaskUtils.hasTasks(vars.get("$field.SALESORDERID"), ContextUtils.getCurrentContextId())) - result.string(neon.COMPONENTSTATE_EDITABLE); -else - result.string(neon.COMPONENTSTATE_INVISIBLE); \ No newline at end of file diff --git a/entity/Product_entity/Product_entity.aod b/entity/Product_entity/Product_entity.aod index 0c280605c9..5c2b560db2 100644 --- a/entity/Product_entity/Product_entity.aod +++ b/entity/Product_entity/Product_entity.aod @@ -341,7 +341,6 @@ </entityActionField> <entityConsumer> <name>Tasks</name> - <stateProcess>%aditoprj%/entity/Product_entity/entityfields/tasks/stateProcess.js</stateProcess> <dependency> <name>dependency</name> <entityName>Task_entity</entityName> diff --git a/entity/Product_entity/entityfields/tasks/stateProcess.js b/entity/Product_entity/entityfields/tasks/stateProcess.js deleted file mode 100644 index 062f477b61..0000000000 --- a/entity/Product_entity/entityfields/tasks/stateProcess.js +++ /dev/null @@ -1,10 +0,0 @@ -import("system.result"); -import("system.neon"); -import("system.vars"); -import("ActivityTask_lib"); -import("Context_lib"); - -if(TaskUtils.hasTasks(vars.get("$field.PRODUCTID"), ContextUtils.getCurrentContextId())) - result.string(neon.COMPONENTSTATE_EDITABLE); -else - result.string(neon.COMPONENTSTATE_INVISIBLE); \ No newline at end of file diff --git a/entity/Salesproject_entity/Salesproject_entity.aod b/entity/Salesproject_entity/Salesproject_entity.aod index 7f800c660a..798fb37263 100644 --- a/entity/Salesproject_entity/Salesproject_entity.aod +++ b/entity/Salesproject_entity/Salesproject_entity.aod @@ -426,7 +426,6 @@ </entityProvider> <entityConsumer> <name>Tasks</name> - <stateProcess>%aditoprj%/entity/Salesproject_entity/entityfields/tasks/stateProcess.js</stateProcess> <dependency> <name>dependency</name> <entityName>Task_entity</entityName> diff --git a/entity/Salesproject_entity/entityfields/tasks/stateProcess.js b/entity/Salesproject_entity/entityfields/tasks/stateProcess.js deleted file mode 100644 index 8a5375f38f..0000000000 --- a/entity/Salesproject_entity/entityfields/tasks/stateProcess.js +++ /dev/null @@ -1,10 +0,0 @@ -import("system.result"); -import("system.neon"); -import("system.vars"); -import("ActivityTask_lib"); -import("Context_lib"); - -if(TaskUtils.hasTasks(vars.get("$field.SALESPROJECTID"), ContextUtils.getCurrentContextId())) - result.string(neon.COMPONENTSTATE_EDITABLE); -else - result.string(neon.COMPONENTSTATE_INVISIBLE); \ No newline at end of file -- GitLab