Set up Accounting Period in Demo Nav.05

KosmosKosmos Member Posts: 58
Hi again,
Maybe I am asking a stupid question, but I really don't know how to solve it.
We downloud Demo Nav. 05 from Microsoft website and I can not set up Accounting Periods there.
Each time I am trying to do it I see a message:
There is no Accounting Periods within the filter.
Filters: Starting Date:>="

What should I do????? #-o
Thank you
Anna

Comments

  • Alex_ChowAlex_Chow Member Posts: 5,063
    I believe the demo company will only allow you to create and post within a certain date period. I'm not sure about the exact date range that you can work in though... :(
  • ara3nara3n Member Posts: 9,256
    yes that is a bug that was fixed with changing the code to that if not find('-') then exit.

    If you can't get the fix,
    I would copy the those tables from the setup checklist from cronus company.

    The two tables are Accounting period, and Inventory Period.


    The code that needs to be fixed is

    old code
    IsInvtPeriodClosed(EndingDate : Date) : Boolean
    AccPeriod.SETFILTER("Starting Date",'>=%1',EndingDate);
    AccPeriod.FINDFIRST;
    IF AccPeriod.NEXT <> 0 THEN
      EndingDate := CALCDATE('<-1D>',AccPeriod."Starting Date");
    
    SETFILTER("Ending Date",'>=%1',EndingDate);
    SETRANGE(Closed,TRUE);
    EXIT(NOT ISEMPTY);
    



    new code
    IsInvtPeriodClosed(EndingDate : Date) : Boolean
    AccPeriod.SETFILTER("Starting Date",'>=%1',EndingDate);
    if not AccPeriod.FINDFIRST then
      EXIT(false);
    IF AccPeriod.NEXT <> 0 THEN
      EndingDate := CALCDATE('<-1D>',AccPeriod."Starting Date");
    
    SETFILTER("Ending Date",'>=%1',EndingDate);
    SETRANGE(Closed,TRUE);
    EXIT(NOT ISEMPTY);
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.