In order to override Interest Periods in Finance Memo Charge calculations, more integration events are required.
In procedure CalcFinanceChargeInterestRate(...) before defaulting UseCalcDate to FinChrgMemoHeader."Document Date" a "AfterSetUseCalcDate(CustLedgEntry,VAR UseCalcDate : Date, VAR IsHandled : Boolean)
In procedure CalcCLosedatDate(...) in the top of the procedure a OnBeforeCalcCloseatDate(CustLedgEntry, VAR ClosedatDate: Date; VAT IsHandled: Boolean)
(And please... less global variables ;-) )
Comments
Request moved to ALAppExtensions on GitHub.
Category: Financial Management
Business Central Team (administrator)
Thank you for reaching out. Your suggestion seems to be an event request, enum request, request for making a function external or general code contribution in for a product. Please create an issue on one of following GitHub repos:
Event Requests, Enum Requests, Requests for Externals, Extensibility enhancements: https://github.com/microsoft/ALAppExtensions/
AL language enhancements and development environment: https://github.com/microsoft/AL
Sincerely,
Brian Nielsen
PM, Microsoft