Forum Discussion

Mike_James's avatar
Mike_James
Ultimate Cover User
4 years ago

v2021.4: Cost of sales API error when # of items per selling unit > 1

In version 2021.40, incorrect cost of sales figures are being reported through the API, where the number of items per selling unit is not 1. For example, a product where this number is 1000 reports a COGS of $23.95, whereas the correct figure per the UI is $23,945.20. 

 

This is affecting gross margin reporting via the API. Whilst we can correct for it, there is some loss of accuracy and therefore external reports will not agree to UI reports. Could you please investigate urgently and advise when this will be fixed. 

 

Various screenshots are attached.  

  • Hi Mike_James ,

     

    Thank you for raising this with us. We have addressed the issue, now the cost of sales is reported accurately with any value under the item's unit of sale (i.e. greater than 1). Please let me know any issues.

     

    Warm regards,

     

    Bruno 

  • brunob's avatar
    brunob
    MYOB Product Manager

    Hi Mike_James ,

     

    Thank you for raising this with us. We have addressed the issue, now the cost of sales is reported accurately with any value under the item's unit of sale (i.e. greater than 1). Please let me know any issues.

     

    Warm regards,

     

    Bruno 

  • Tana's avatar
    Tana
    MYOB Staff

    Hi there Mike and appreciate you reaching out.

    That definitely is something we will want to investigate, can we please get a more detailed trace of your call via a support ticket: https://developer.myob.com/contact/

    If you could provide the full endpoint + request and response headers, URI, API key and RequestID with the above ticket we will look into it right away.

    Can I also confirm, that all reporting via the AccountRight UI in this regard appears correct, and only the display via the API is incorrect?

    Appreciate your co operation.
    Kind regards

    • Mike_James's avatar
      Mike_James
      Ultimate Cover User

      Hi Tana

       

      Yes, all reporting via the UI is correct. 

       

      I will prepare the requested details and file a support ticket asap.

      • The_Doc's avatar
        The_Doc
        Ultimate Cover User

        Hi Mike_James 

         

        Wow - good one Mike - made me sweat a bit then - but luckily all my items per selling unit = 1 but a good heads up.

         

        Thanks.

         

        Regards The Doc