We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
We need an event to manipulate exit value for depreciation years in CalcSLAmount method of codeunit 5611 as described below:
LOCAL [IntegrationEvent] OnBeforeExitCalcSLAmountByDeprYears(FA : Record "Fixed Asset";FADeprBook : Record "FA Depreciation Book";UntilDate : Date;BookValue : Decimal;DeprBasis : Decimal;DeprYears : Decimal;NumberOfDays : Integer;DaysInFiscalYear : Integer
LOCAL CalcSLAmount() : Decimal ... ... IF DeprYears > 0 THEN BEGIN RemainingLife := (DeprYears * DaysInFiscalYear) - DepreciationCalc.DeprDays( DeprStartingDate,DepreciationCalc.Yesterday(FirstDeprDate,Year365Days),Year365Days); IF RemainingLife < 1 THEN EXIT(-BookValue); // ***** publisher call begins here ***** IsHandled := FALSE; OnBeforeExitCalcSLAmountByDeprYears(FA,FADeprBook,UntilDate,BookValue,DeprBasis,DeprYears,NumberOfDays,DaysInFiscalYear,ExitValue,IsHandled); IF IsHandled THEN EXIT(ExitValue); // ***** publisher call ends here ***** EXIT(-(BookValue + SalvageValue - MinusBookValue) * NumberOfDays / RemainingLife); END; EXIT(0);
Thanks in advance!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
We need an event to manipulate exit value for depreciation years in CalcSLAmount method of codeunit 5611 as described below:
Thanks in advance!
The text was updated successfully, but these errors were encountered: