Hello Sir,
While trying to put entry in Depreciation
Depreciation- Entry for the month of April 2016 not able to post.
Please find below error for reference. Kindly help
*This post is locked for comments
Hello Sir,
While trying to put entry in Depreciation
Depreciation- Entry for the month of April 2016 not able to post.
Please find below error for reference. Kindly help
*This post is locked for comments
This is CheckFADepAcrossFiscalYear function in Codeunit 5631 - FA Jnl.-Check Line
Try with following code
IF (GenJnlLine."FA Posting Type" = GenJnlLine."FA Posting Type"::Depreciation) AND
(GenJnlLine."No. of Depreciation Days" <> 0) AND
(FADeprBook."Depreciation Method" = FADeprBook."Depreciation Method"::"Declining-Balance 1")
THEN BEGIN
EndingDate := DepreciationCalculation.ToMorrow(GenJnlLine."FA Posting Date",DeprBook."Fiscal Year 365 Days");
IF DeprBook."Fiscal Year 365 Days" THEN
StartingDate := CALCDATE(STRSUBSTNO('<-%1D>',GenJnlLine."No. of Depreciation Days"),EndingDate)
ELSE BEGIN
StartingDate := CALCDATE(STRSUBSTNO('<-%1M>',GenJnlLine."No. of Depreciation Days" DIV 30),EndingDate);
StartingDate := CALCDATE(STRSUBSTNO('<-%1D>',GenJnlLine."No. of Depreciation Days" MOD 30),StartingDate);
END;
AccPeriod.SETFILTER("Starting Date",'>%1&<=%2',FindFiscalYear(StartingDate),GenJnlLine."FA Posting Date");
AccPeriod.SETRANGE("New Fiscal Year",TRUE);
IF NOT AccPeriod.ISEMPTY THEN
ERROR(Text019Err);
END;
Hi Can you tell What Depreciation Method you are using?, also can you attached the Depreciation Book Page Screen also.
Any updates please!
Please find debugger code. Please advise what needs to be done.
Hi Mandeep
Are you Using W1 Database?, in order to find the Error if you have Development Environment Access Go There and Run The Debugger then Try to Post, the debugger will show what function is giving the Error.
Thanks.
We have'nt applied any hotfix asyet. Please let me know which hotfix we need to apply and how.
What has been the latest hotfix you applied?
Sir,
We are working with Nav2013R2 the fiscal Year is 2016, Previous year we haven't close any past years.
What localization do you work with? It might be an error, and you should apply the latest hotfix to the system. Also, what is your fiscal year? Is the previous closed and new one created?
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,409
Most Valuable Professional
nmaenpaa
101,156