Close Income Statement (UK version)

TomasTomas Member Posts: 420
NAV 5 (UK).

When you click on Close Income Statement report, request form appears and after a sec you get error message: "The expression Date cannot be type-converted to a Option value".

I've looked that error message is generated on IsInvtPeriodClosed function:
AccPeriod.GET(EndDateReq + 1);


Has anyone else had same problem?

Answers

  • TomasTomas Member Posts: 420
    I actually found more information about this issue.
    There is a fix - i had to replace existing code in IsInvtPeriodClosed function with this code:
    AccPeriod.SETRANGE("Period Type",AccPeriod."Period Type"::Month);
    AccPeriod.GET(AccPeriod."Period Type"::Month,EndDateReq + 1);
    AccPeriod.NEXT(-1);
    EXIT(InvtPeriod.IsInvtPeriodClosed(AccPeriod."Period Start"));
    
Sign In or Register to comment.