Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
January 2021
January 2021
Hi
I am having an issue with a certain product in an order improting into MYOB. The error message we receive is
CommonRules_DecimalPrecision", "AdditionalDetails": "AmountSaleEventItemLine)", "ErrorCode": 1026
I see that this relates to rounding, although everytiung seems to be correct?
Array (
[0] => Array (
[ShipQuantity] => 1
[Total] => 58
)
[1] => Array (
[ShipQuantity] => 1
[Total] => 12
)
)
[Freight] => 10
[IsTaxInclusive] => 1
[TotalTax] => 7.27
[TotalAmount] => 80.00
Can anyone help me to find what we are doing wrong here. I cant see any issues wiht the calcs :-|
Thanks in advance!
January 2021
January 2021
You could try not posting the line total (or TotalAmount?).
From memory, AccountRight will calculate these itself if it has enough infomation (although the docs say it is required).
AR has some peculiar ways of rounding that I have never been able to reproduce.
John.
January 2021
January 2021
HIi @NetNinjas,
Thank you for reaching out, that is correct the error CommonRules_DecimalPrecision
tend to always point to rounding of decimals. @John_Dinning suggestion is great and I recommend giving this a go. AccountRight calculates per line item which can change the total slightly depending on the rounding.
If this does not resolve the issue you can create a ticket request with us HERE .
Thanks,
@Hannah_B
MYOB API Specialist
MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's
Did my answer help?
Mark it as a Solution
by
Plumit
a month ago
16
579
|
16
|
579
|
||
5
|
320
|
|||
1
|
349
|
|||
4
|
703
|
|||
16
|
756
|