Back

Maica Client Management V.0.328

NDIS-850: NDIS Plan Sync - Issue with Plan Budget Mapping

Fix: Mapping of Management type on Plan Budget

The maica_Plan_Budget.maica__Mangement_Type_c field was not correctly mapped to the values received from the NDIS API. The field was previously hardcoded to "Plan Managed" instead of dynamically mapping the values from the received payload.

 

What’s Changed?

  1. Implemented a mapping between plan_management_text values in the NDIS response and maica__Plan_Management_c field in Maica.
  2. Updated code in NDISPlanBudgets.cls to properly map and store the plan management type.
  3. Unit tests were extended to validate the mapping.

Mapping Implemented

  1. ZCOR_PLAN → "Core Plan Managed"
  2. ZCAT_PLAN → "Capital Plan Managed"
  3. ZCAP_PLAN → "Capacity Building Plan Managed"

Testing & Validation

  1. The implementation was validated through unit tests.
  2. Peer review and QA were completed before merging into production.

NDIS-834: NDIS - Support Agreement Items with odd utilization values

Fix: Incorrect Utilisation Calculations on Agreement Items

We resolved an issue where Agreement Items displayed incorrect utilisation percentages and negative remaining balances due to inconsistencies in how Quantity and Unit Price were ratioed in relation to Invoice Line Item records. This fix ensures accurate financial calculations, preventing over-utilisation errors and incorrect funding balances.

What’s Changed?

  1. New Quantity Delivered Field for Accurate Roll-Ups: Introduced Quantity Delivered field on Invoice Line Item and Delivery Activity. This field captures the actual ratioed quantity, ensuring correct utilisation calculations. Roll-ups on Agreement Item now sum Quantity Delivered instead of Quantity.
  2. Fixed Total Allocated and Utilisation Field Calculations: Previously, Total Allocated was fluctuating due to the way Quantity Remaining was being calculated. The calculation now follows a fixed formula: Total Allocated = Quantity Remaining * Rate + Total Delivered. Utilisation is now correctly calculated as: Total Delivered / Total Allocated. The value can now exceed 100% only when services have been over-delivered, preventing incorrect negative values.
  3. Post-Update Data Correction: A post-installation script will be executed to recalculate all existing Invoice Line Item and Agreement Item records to ensure accurate roll-ups. Any previously impacted records will be automatically corrected.
Post Installation Scripts: Client Management ONLY
The section of below scripts apply if you are on Client Management ONLY, if you use Client Management & Delivery, skip to the next section.
Please ensure you complete the following Post Install Scripts in the order they are provided. If you require assistance with installing or running this script, please contact Maica Support for guidance.

View Code

View Code

Post Installation Scripts: Client Management & Client Delivery
If you are on Maica Client Delivery as well as Maica Client Management, please use the below scripts. If you are on Client Management ONLY, please ignore the below section.
Note: When running these scripts, please wait until the first Job has been completed before starting the second Script. You can track the progress of the Job in your Salesforce instance by going to Setup --> Apex Jobs.
If you require assistance with installing or running this script, please contact Maica Support for guidance.

Script to UPDATE Invoice Line Items

View Code

Script to UPDATE Agreement Items

View Code