LogoLogo
Maica's Homepage
Admin Guide
Admin Guide
  • Welcome to Maica Administration
  • Getting Started
    • Check your Salesforce Hosting
    • Licence Agreement
    • The Maica Release Process
    • Find your Maica Edition
    • The Implementation Process
  • Data
    • Data Objects
      • Agreement Item
      • Appointment
      • Availability
      • Booking Item
      • Checklist
      • Client Note
      • Connection
      • Contact
      • Delivery Activity
      • Funding
      • Funding Item
      • Invoice
      • Invoice Line Item
      • Location
      • Log
      • Payment Request
      • Preference
      • Price List
      • Price List Entry
      • Resource
      • Resource Participant
      • Service Agreement
      • Service Agreement Leave
      • Service Agreement Statement
      • Service Booking
      • Shift
      • Support Category
      • Support Item
      • Timesheet
      • Timesheet Entry
      • Unavailability
    • Permission Sets
    • Reference Data
      • Reference Data Template
      • Import Template
    • Data Import Utility
      • NDIS Support Catalogue
      • Data Import Flows
  • System Processes
    • Billing Invoice Generation
    • Timesheet Generation
    • Recurring Schedules
    • Travel Claiming and Expenses
    • Public Holiday Configuration
    • Configuring Maica Components
      • Appointment Services
      • Support Items
      • Support Categories
      • Overnight and 24 Hour Availability
  • Enable Maica Actions
  • Scheduled Jobs
  • Maica Timezone Management
  • Integrations
    • Create a Site
    • Xero Integration
      • Support Item Configuration
    • Stripe Integration
    • NDIS Notifications
  • Settings
    • Renewal Management
    • Claim Management
      • NDIS
        • Handle BPR Results & Remittance Files
        • BPR File Import Flows
      • Aged Care
    • Invoice Management
    • Support Item Management
    • Integration Management
      • NDIS Integration
      • Stripe Integration
      • Xero Integration
    • Connections Management
      • General Settings
      • Reciprocal Settings
    • General Settings
    • Planner Management
    • Rostering Management
    • Service Management
    • Timesheet Management
    • Validation Management
    • Travel Management
    • Billing Management
    • Maps Management
    • Participant Notes
Powered by GitBook

Further Maica Resources

  • Homepage
  • Features
  • FAQs
On this page
  • Fields & Relationships
  • Validation Rules
  • Start Date Cannot Be After End Date
  • Automation
  • Trigger Handlers
  • Agreement Item Support Item
  • Agreement Item Estimated Expenditure
  • Agreement Item Rollup Expenditure
  • Agreement Item Total Allocated

Was this helpful?

Export as PDF
  1. Data
  2. Data Objects

Agreement Item

The Agreement object in Maica represents the specific Products (Support Items) to be delivered as part of the Service Agreement

PreviousData ObjectsNextAppointment

Last updated 9 months ago

Was this helpful?

Fields & Relationships

The table below provides a comprehensive overview of all fields and relationships for the Agreement Item object in Maica. Please refer to the table below for detailed information.

Validation Rules

The list below outlines the Validation Rules applied to the Agreement Item Object in Maica.

Please refer to the list below for more detailed information on each Validation Rule.

Start Date Cannot Be After End Date

Ensures that the start date cannot be after the end date of any Agreement Item.

Validation Rule Detail

Rule Name

VAL_AGREEMENT_ITEM_0001

Error Message

VAL_0001: Start Date cannot be after End Date.

Error Location

Top of Page

Error Condition Formula
maica_cc__Start_Date__c  >  maica_cc__End_Date__c

Automation

Trigger Handlers

The table below outlines the Trigger Handlers applied to the Agreement Item Object in Maica and their Load Order.

Trigger Handler
Load Order

1

2

2

3

Please refer to the list below for more detailed information on each Trigger Handler.

Agreement Item Support Item

This trigger is designed to manage the support items of agreement items in Maica.

Detail

Load Order

1

Label

AgreementItemSupportItem_MDTM

Execution, Logic & Outcome

Execution of Trigger Logic:

The trigger logic defined in the AgreementItemSupportItem_MDTM class is executed when the trigger conditions are met. The class contains the code that manages the support items for agreement items.

  • Trigger Conditions:

    • When a new agreement item (maica__Agreement_Item__c) is created.

    • When an existing agreement item is updated.

    • Any specific field changes that are monitored by the trigger (defined in the handler class).

Logic Explanation

  1. Initialisation:

    • When an agreement item record is created or updated, the trigger is initialised. The AgreementItemSupportItem_MDTM metadata type configuration is loaded, ensuring that the trigger is active (Active__c is true) and has the correct load order (Load_Order__c is 1.0).

  2. Trigger Execution:

    • Upon initialisation, the trigger executes the logic defined in the AgreementItemSupportItem_MDTM class.

    • The class methods perform the following steps:

      • Validation: The support item data is validated to ensure it is complete and accurate.

      • Association: The support items are associated with the agreement items based on predefined criteria such as item type and service requirements.

      • Update: The agreement item record is updated with the associated support item data.

Trigger Outcome:

Once executed, the trigger ensures that each agreement item has its support items associated correctly, based on the logic defined in the handler class. This helps maintain accurate and complete data for agreement items and their support items.

Agreement Item Estimated Expenditure

This trigger is designed to manage the estimated expenditure of agreement items in Maica.

Detail

Load Order

2

Label

AgreementItemEstExpenditure_MDTM

Execution, Logic & Outcome

Execution of Trigger Logic:

The trigger logic defined in the AgreementItemEstExpenditure_MDTM class is executed when the trigger conditions are met. The class contains the code that manages the estimated expenditure process for agreement items.

  • Trigger Conditions:

    • When a new agreement item (maica__Agreement_Item__c) is created.

    • When an existing agreement item is updated.

    • Any specific field changes that are monitored by the trigger (defined in the handler class).

Logic Explanation

  1. Initialisation:

    • When an agreement item record is created or updated, the trigger is initialised. The AgreementItemEstExpenditure_MDTM metadata type configuration is loaded, ensuring that the trigger is active (Active__c is true) and has the correct load order (Load_Order__c is 2.0).

  2. Trigger Execution:

    • Upon initialisation, the trigger executes the logic defined in the AgreementItemEstExpenditure_MDTM class.

    • The class methods perform the following steps:

      • Validation: The agreement item data is validated to ensure it is complete and accurate.

      • Calculation: The estimated expenditure is calculated based on predefined criteria such as item type and service duration.

      • Update: The agreement item record is updated with the newly calculated estimated expenditure data.

Trigger Outcome:

Once executed, the trigger ensures that each agreement item has its estimated expenditure calculated correctly, based on the logic defined in the handler class. This helps maintain accurate financial data for agreement items.

Agreement Item Rollup Expenditure

This trigger is designed to manage the rollup of expenditures for agreement items in Maica.

Detail

Load Order

2

Label

AgreementItemRollupExpenditure_MDTM

Execution, Logic & Outcome

Execution of Trigger Logic:

The trigger logic defined in the AgreementItemRollupExpenditure_MDTM class is executed when the trigger conditions are met. The class contains the code that manages the rollup expenditure process for agreement items.

  • Trigger Conditions:

    • When a new agreement item (maica__Agreement_Item__c) is created.

    • When an existing agreement item is updated.

    • Any specific field changes that are monitored by the trigger (defined in the handler class).

Logic Explanation

  1. Initialisation:

    • When an agreement item record is created or updated, the trigger is initialised. The AgreementItemRollupExpenditure_MDTM metadata type configuration is loaded, ensuring that the trigger is active (Active__c is true) and has the correct load order (Load_Order__c is 2.0).

  2. Trigger Execution:

    • Upon initialisation, the trigger executes the logic defined in the AgreementItemRollupExpenditure_MDTM class.

    • The class methods perform the following steps:

      • Validation: The expenditure data is validated to ensure it is complete and accurate.

      • Calculation: The total expenditure is calculated based on predefined criteria such as item type and financial rules.

      • Update: The agreement item record is updated with the newly calculated rolled-up expenditure data.

Trigger Outcome:

Once executed, the trigger ensures that each agreement item has its expenditures rolled up correctly, based on the logic defined in the handler class. This helps maintain accurate financial data for agreement items.

Agreement Item Total Allocated

This trigger is designed to manage the total allocation of agreement items in Maica.

Detail

Load Order

3

Label

AgreementItemTotalAllocated_MDTM

Execution, Logic & Outcome

Execution of Trigger Logic:

The trigger logic defined in the AgreementItemTotalAllocated_MDTM class is executed when the trigger conditions are met. The class contains the code that manages the total allocation process for agreement items.

  • Trigger Conditions:

    • When a new agreement item (maica__Agreement_Item__c) is created.

    • When an existing agreement item is updated.

    • Any specific field changes that are monitored by the trigger (defined in the handler class).

Logic Explanation

  1. Initialisation:

    • When an agreement item record is created or updated, the trigger is initialised. The AgreementItemTotalAllocated_MDTM metadata type configuration is loaded, ensuring that the trigger is active (Active__c is true) and has the correct load order (Load_Order__c is 3.0).

  2. Trigger Execution:

    • Upon initialisation, the trigger executes the logic defined in the AgreementItemTotalAllocated_MDTM class.

    • The class methods perform the following steps:

      • Validation: The allocation data is validated to ensure it is complete and accurate.

      • Calculation: The total allocated amount is calculated based on predefined criteria such as item type and allocation rules.

      • Update: The agreement item record is updated with the newly calculated total allocated data.

Trigger Outcome:

Once executed, the trigger ensures that each agreement item has its total allocated amount calculated correctly, based on the logic defined in the handler class. This helps maintain accurate financial data for agreement items.

Click to view and download the complete Agreement Item Schema.

here
AgreementItemSupportItem_MDTM
AgreementItemEstExpenditure_MDTM
AgreementItemRollupExpenditure_MDTM
AgreementItemTotalAllocated_MDTM
Agreement Item Schema