Service Management - Service Order Query

riki7riki7 Member Posts: 29
edited 2007-06-26 in Navision Attain
hi guys,

One of our customers is issueing Service Orders where the Service Invoice Lines are marked as non Chargable. What they are asking is when they post this Service Orders if there is way for the program not to create any Sales Invoice (Service) document. The reason for requesting this is because they don't want to appear on the Customer Ledger Entries any lines with zero amounts.

Is there a way to do that :-k ?

Comments

  • ArhontisArhontis Member Posts: 667
    Hello Riki,

    1) In the service management setup, under the Defaults, there is a field that is called "Default Invoice Document". If you choose the value Unposted Sales Invoice, it will create the invoices but not post them...

    2) But if you want to prevent it from even creating the invoices then you could do the following:

    Design the cu 5908.
    Find the CreateSalesHeader and the CreateSalesLine functions and place an EXIT; and the beginning.

    And comment the:
        //IF NOT SalesPost.RUN(SalesHeader) THEN
          //ERROR(Text004,SalesHeader.TABLECAPTION,SalesHeader."No.");
    
    that is at the end of the OnRun trigger.

    That way it will not even create any invoices. I haven't tried it but I think it will work...
  • riki7riki7 Member Posts: 29
    Hi Arhonti,

    Thank you for all your help. I'll try it and let you know what the results are.
Sign In or Register to comment.