The FSCCashFlowUtil has these methods.
-
GetPartyIncomeFrequencyLabel
Returns the picklist values for the party income frequency field on the party income entity. -
GetPartyIncomeTypeLabel
Returns the picklist values for the party income type field on the party income entity. -
GetPartyIncomeStatusLabel
Returns the picklist values for the party income status field on the party income entity. -
CalculateIncomeExpenseSummary
Calculates the monthly income, total income, average monthly income, monthly expense, total expense, average monthly expense from a list of income and expenses provided. -
GetPartyExpenseFrequencyLabel
Returns the picklist values for the party expense frequency field on the party expense entity. -
GetPartyExpenseTypeLabel
Returns the picklist values for the party expense type field on the party expense entity. -
GetPartyExpenseStatusLabel
Returns the picklist values for the party expense status field on the party expense entity. -
PerformIncomeValidation
Performs validations on Party Income records. Ensure that the start date is not earlier than the end date. -
PerformExpenseValidation
Performs validations on Party Income records. -
GetDurationDateRange
Returns the start and end date given a duration.For example, if you input the number 3 on the date 10/29/2024, it will return a start date of 7/1/2024 and an end date of 10/1/2024. -
HandleUpsertError
Helper method that constructs the error response for upsert of a partyIncome or partyExpense record. -
CheckReadAccess
Checks for read access on the partyIncome and partyExpense entities. -
CheckCrudOnIncome
Checks create, update and delete access on partyIncome entity. -
CheckCrudOnExpense
Checks create, update and delete access on partyExpense entity.