Service Agreement
The Service Agreement object in Maica represents the details of a Service Agreement signed between your organisation and a Client.
Fields & Relationships
The table below provides a comprehensive overview of all fields and relationships for the Service Agreement object in Maica. Please refer to the table below for detailed information.
Click here to view and download the complete Service Agreement Schema.
Validation Rules
The list below outlines the Validation Rules applied to the Service Agreement Object in Maica.
Please refer to the list below for more detailed information on each Validation Rule.
Funding Administrator Required for Non-Self Funded Sources
Ensures that the Funding Administrator lookup is populated when the Funding Source is any value other than Self-Funded. Not required for Self and Agency Managed in the NDIS.
Rule Name
VAL_SERVICE_AGREEMENT_0001
Error Message
VAL_0001: Please provide the Funding Administrator.
Error Location
Funding Administrator
AND(
ISBLANK(maica_cc__Funding_Administrator__c),
NOT(
OR(
ISPICKVAL(maica_cc__Funding_Source__c, 'Self Funded'),
AND(
ISPICKVAL(maica_cc__Funding_Source__c, 'NDIS'),
ISPICKVAL(maica_cc__Funding_Type__c, 'Self Managed')
),
AND(
ISPICKVAL(maica_cc__Funding_Source__c, 'NDIS'),
ISPICKVAL(maica_cc__Funding_Type__c, 'Agency Managed')
)
)
)
)
Agreement Start Date Must Be Before End Date
Ensures that the Agreement's Start Date cannot be after the End Date.
Rule Name
VAL_SERVICE_AGREEMENT_0002
Error Message
VAL_0002: The Start Date cannot be after the End Date.
Error Location
Start Date
maica_cc__Start_Date__c > maica_cc__End_Date__c
Start and End Dates Required for NDIS Funding Source
Ensures the Start and End Date are provided when the Funding Source is NDIS.
Rule Name
VAL_SERVICE_AGREEMENT_0003
Error Message
VAL_0003: As the Funding Source is NDIS, the Start and End Date are required.
Error Location
Top of Page
AND(
ISPICKVAL(maica_cc__Funding_Source__c, 'NDIS'),
OR(
ISBLANK(maica_cc__Start_Date__c),
ISBLANK(maica_cc__End_Date__c)
)
)
Price List Must Be Associated
Ensures that the Price List is populated.
Rule Name
VAL_SERVICE_AGREEMENT_0004
Error Message
VAL_0004: Please associate a Price List.
Error Location
Price List
ISBLANK(maica_cc__Price_List__c)
Price List and Service Agreement Date Alignment
Ensures that the associated Price List Start Date is less than or equal to the Service Agreement Start Date and the Price List End Date is greater than the Service Agreement Start Date.
Rule Name
VAL_SERVICE_AGREEMENT_0005
Error Message
VAL_0005: The Price List Start Date must be less than or equal to the Service Agreement Start Date and the Price List End Date must be greater than the Service Agreement Start Date.
Error Location
Price List
AND(
maica_cc__Price_List__r.maica_cc__Start_Date__c <= maica_cc__Start_Date__c,
maica_cc__Price_List__r.maica_cc__End_Date__c > maica_cc__Start_Date__c
)
Automation
Flows
The list below outlines the Flows applied to the Service Agreement Object in Maica.
Please refer to the list below for more detailed information on each Flow.
Cancel Service Agreement
This flow is designed to manage the cancellation of a service agreement. It ensures that service agreements can only be canceled if they are active, providing confirmation screens for user actions and handling any errors that may occur during the process.
Flow Label
Maica - Cancel Service Agreement
API Name
maica__Cancel_Service_Agreement
Type
Screen Flow
Flow Summary
This flow facilitates the cancellation process for service agreements by following these steps:
Checking the status of the service agreement.
Confirming the cancellation with the user.
Setting the service agreement as cancelled.
Updating the service agreement record.
Displaying appropriate messages based on the outcome of the process.
Discharge Service Agreement Screen Flow
This flow is designed to handle the discharge process for Service Agreements. It ensures a smooth and efficient discharge process with appropriate error handling and user guidance.
Flow Label
Maica - Discharge Service Agreement Screen Flow
API Name
maica__Maica_Discharge_Service_Agreement_Screen_Flow
Type
Screen Flow
Flow Summary
This flow facilitates the discharge process for Service Agreements by following these steps:
Displaying instructions for discharging a Service Agreement.
Calling a subflow to generate a discharge statement.
Checking for any fault messages from the subflow.
Updating the Service Agreement record with discharge details.
Displaying success or error messages based on the outcome of the process.
Generate Discharge Statement
This flow generates Statement for period of the claim to the discharge date, then generates the Discharge Statement record.
Flow Label
Maica - Generate Discharge Statement
API Name
maica__Maica_Generate_Discharge_Statement
Type
Autolaunched
Flow Summary
This flow ensures that a discharge statement is accurately generated based on the service agreement and its related monthly statements.
Starts on service agreement creation or update.
Retrieves and validates the service agreement.
Assigns statement period dates and calls a subflow to generate service agreement statements.
Loops through monthly statements and updates discharge statement counters.
Creates the discharge statement and updates the service agreement.
Service Agreement Fee Invoicing Initialisation
Fee Invoicing Step 1
This flow is designed to schedule the initialisation of the invoicing process for service agreements, setting their status to "Initialised" to trigger the fee invoicing flow. By automating this process, the flow ensures that service agreements are ready for fee invoicing without manual intervention.
Flow Label
Maica - Service Agreement - Fee Invoicing Initialisation
API Name
maica___Service_Agreement_Fee_Invoicing_Initialisation
Type
Autolaunched
Flow Summary
This flow ensures that the invoicing process for service agreements is initialised on a daily basis by:
Running the flow daily at a specified time.
Filtering service agreements based on their status and funding type.
Updating the invoicing flow status to "Initialised" to trigger the fee invoicing flow.
Service Agreement Fee Invoice Trigger
Fee Invoicing Step 2
This flow is designed to trigger the generation of fee invoices and their line items for service agreements. It ensures a streamlined and automated process for generating fee invoices for service agreements, with appropriate error handling and logging mechanisms.
Flow Label
Maica - Service Agreement - Fee Invoice Trigger
API Name
maica__Maica_Service_Agreement_Fee_Invoice_Trigger
Type
Autolaunched
Flow Summary
This flow facilitates the generation of invoices and line items for service agreement fees by:
Detecting changes to the invoicing flow status.
Retrieving the relevant service agreement record.
Triggering the Fee Invoice Generation Flow to create invoices and line items.
Updating the service agreement status to complete.
Service Agreement Fee Invoice Generation
Fee Invoicing Step 3
This flow automates the process of generating fee invoice line items for service agreements. It ensures a streamlined and automated process for generating accurate fee invoices and their associated line items based on the service agreement details.
Flow Label
Maica - Service Agreement - Fee Invoice Generation (Autolaunch)
API Name
maica__Maica_Service_Agreement_Fee_Invoice_Generation_Autolaunch
Type
Autolaunched
Flow Summary
This flow facilitates the generation of fee invoice line items for service agreements by following these steps:
Starting the flow and retrieving the service agreement.
Retrieving the related plan and service agreement leave records.
Checking if the service agreement is on leave and handling accordingly.
Retrieving and validating the income-tested fee plan budget.
Assigning the income-tested fee rate and adding the budget to the collection.
Checking the type of leave and retrieving the corresponding billable plan budgets.
Validating the existence of billable and claimable plan budgets.
Calling the Invoice Invocable actions to create copayment and claim invoices.
Looping through the billable and claimable plan budgets to assign invoice line item values.
Creating the invoice line items.
Handling errors during the process.
Trigger Handlers
The list below outlines the Trigger Handlers applied to the Service Agreement Object in Maica.
Please refer to the list below for more detailed information on each Trigger Handler.
Service Agreement Price List
This trigger is designed to ensure that the correct price list is applied to service agreements in Maica.
Load Order
1
Label
ServiceAgreementPriceList_MDTM
Service Agreement Name Formatting
This trigger is designed to ensure that the service agreement names are formatted correctly in Maica.
Load Order
1
Label
ServiceAgreementNameFormatting_MDTM
Service Agreement Validation
This trigger is designed to manage the validation of service agreements in Maica.
Load Order
2
Label
ServiceAgreementValidation_MDTM
Last updated
Was this helpful?