Forum Discussion

HIT_Ken's avatar
HIT_Ken
Contributing User
2 years ago

Error Code 37003

I was trying to create an order, but I have no idea why the line total is unbalanced.

I need the attributes of "total" and "UnitPrice". 

Any suggestion for this error please, thanks 

    • HIT_Ken's avatar
      HIT_Ken
      Contributing User

      Thanks for your reply.

       

      In my picture, the total is 134.77 because I would like to let the MYOB automatically apply the "

      DiscountPercent". Although the ship quantity is 5 and the unit price is 29.95.
       
      The ideal state is when creating the order with quantity 5, the unit price is 29.95 and the total is 134.77, and the MYOB automatically apply "DiscountPercent" to 10%. 
       
      But when I change the total to 134.79 and keep the quantity 5 and the unit price is 29.95, it will be created successfully.
       
      And according to the MYOB API Document, error code 37007 is "Decimal precision error on Total field", so I thought the problem is in the number of line total. But I have no idea why only when the total is 134.77 will be created fail, but 134.79 will no
      • Stuart_Donaldson's avatar
        Stuart_Donaldson
        Valued Cover User

        What happens if you include the DiscountPercent figure in the Line array?