Forum Discussion

The_Doc's avatar
The_Doc
Ultimate Partner
4 years ago
Solved

API dropping a line in an invoice

Hi MYOB API    I will post directly to you but thought I would drop this on the general post forum for the developers and API people for interesting information.   I have a client using a Job Cos...
  • The_Doc's avatar
    The_Doc
    4 years ago

    Hi Komal_S 

     

    Problem solved - minor bug in my JSON dictionary - my coding loop to decide whether a line in a service invoice was a "Type: Header" or "Type: Transaction" - however my lookup only said - if the word in this line is "Header" then ignore

    instead of - if word in this line is "Type: Header" - 

    and the bug was if the line description had a word in there ........... header ........    then that line was ignored.

     

    And the 1 in 1000 invoices - a description had the word ... header in there which resulted that line being ignored.

    The bug has been fixed.

     

    The Doc