global abstract with sharing class DepreciationCalculation
This class must be extended by the customer if the customer is writing their own implementations of the fam.DepreciationCalculation class.
This class contains deprecated items.
//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code
global virtual List<fam__FA_Depreciation_Schedule__c> generateSchedules(fam__Depreciation_Book__c book, Decimal totalAmountToDepreciate, Date depreciationStartDate)
This method is employed by the GenerateScheduleService to generate partial periods of the Depreciation Book.
global virtual void updateBefore(fam__FA_Depreciation_Schedule__c oldSchedules, fam__FA_Depreciation_Schedule__c updatedSchedules, Map<Id, fam__FA_Depreciation_Schedule__c> scheduleMap)
This method is called before updating the schedules and performs schedule validation
global virtual void updateAfter(fam__FA_Depreciation_Schedule__c oldSchedules, fam__FA_Depreciation_Schedule__c updatedSchedules, Map<Id, fam__FA_Depreciation_Schedule__c> scheduleMap)
This method is called after updating a schedule and performs schedule validation
global virtual void validateBook(fam__Depreciation_Book__c book)
You can override this method to provide some calculation specific validation. For example: • Sum of Years Digits requires that the Service Life is an Integer. • Units of Production requires that the Service Life in Units field is provided.
The following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions.