Batch Post Service Invoice drops Description line

Joe_MathisJoe_Mathis Member Posts: 173
NAV 2009 R2 (NA)
CC (Where I am trouble shooting from)
Cronus Database

Strange feature... :mrgreen:

If you post a single service invoice, the description line goes across to the posted service invoice.

If you Post Batch a single service invoice, the description line is dropped.

Anyone see this before and have a solution?

Answers

  • Joe_MathisJoe_Mathis Member Posts: 173
    This is caused by the new RemoveLinesNotSatisfyPosting() function in the CU 5988 Serv-Documents Mgt. Codeunit
    RemoveLinesNotSatisfyPosting()
    **Before**
    // Remove ServLines that do not meet the posting conditions from the selected to post lines
    WITH ServLine DO
    
    **After**
    // Remove ServLines that do not meet the posting conditions from the selected to post lines
    ServLine.SETFILTER(Type,'<>%1',ServLine.Type::" ");
    WITH ServLine DO
    ...
    ServLine.SETRANGE(Type);
    

    I just added a filter to keep the lines that are in for comments, then removed my filter at the end of the code.
    Appears to work as intended... :mrgreen:
Sign In or Register to comment.