From 89c190a9c8fc2d61c6a2b806fe49c785cbac7bcc Mon Sep 17 00:00:00 2001 From: Heber Date: Thu, 8 Feb 2024 09:35:59 -0700 Subject: [PATCH] improve modal and path Work on field layouts --- .../LookupRollupStatusCheckController.cls | 13 + dlrs/main/lwc/flexiblePath/flexiblePath.html | 4 +- dlrs/main/lwc/flexiblePath/flexiblePath.js | 29 +- dlrs/main/lwc/manageRollups/manageRollups.js | 53 +- dlrs/main/lwc/rollupEditor/rollupEditor.html | 964 +++++++++--------- dlrs/main/lwc/rollupEditor/rollupEditor.js | 215 ++-- .../rollupEditorModal/rollupEditorModal.html | 10 - .../rollupEditorModal/rollupEditorModal.js | 14 - .../rollupEditorModal.js-meta.xml | 5 - 9 files changed, 705 insertions(+), 602 deletions(-) delete mode 100644 dlrs/main/lwc/rollupEditorModal/rollupEditorModal.html delete mode 100644 dlrs/main/lwc/rollupEditorModal/rollupEditorModal.js delete mode 100644 dlrs/main/lwc/rollupEditorModal/rollupEditorModal.js-meta.xml diff --git a/dlrs/main/classes/LookupRollupStatusCheckController.cls b/dlrs/main/classes/LookupRollupStatusCheckController.cls index 79828cd9..88f53eec 100644 --- a/dlrs/main/classes/LookupRollupStatusCheckController.cls +++ b/dlrs/main/classes/LookupRollupStatusCheckController.cls @@ -40,6 +40,19 @@ public with sharing class LookupRollupStatusCheckController { ]; } + /** + * Get count of scheduled items older than yesterday + * The assumption is that normal processing should have handled these + */ + @AuraEnabled(Cacheable=true) + public static Integer getOutstandingScheduledItemsForLookup(String lookupID) { + return [ + SELECT COUNT() + FROM LookupRollupSummaryScheduleItems__c + WHERE LookupRollupSummary2__c = :lookupID AND LastModifiedDate < YESTERDAY + ]; + } + /** * Check if the rollup has a Full Calculate schedule */ diff --git a/dlrs/main/lwc/flexiblePath/flexiblePath.html b/dlrs/main/lwc/flexiblePath/flexiblePath.html index 9a677ba6..dc6d209f 100644 --- a/dlrs/main/lwc/flexiblePath/flexiblePath.html +++ b/dlrs/main/lwc/flexiblePath/flexiblePath.html @@ -90,9 +90,7 @@
- Next Action: {nextActionLabel} +