https://developer.myob.com/api/accountright/v2/sale/order/order_service/
the "CustomerPurchaseOrderNumber" is sting 20
When a user enter a purchase order number with leading zeroes I get a SerializationError "Input string '00124249' is not a valid number....."
Given that it is a string and some PO numbers may contain alpha character should this happen? Should I test and see if it's a number present it differently? Which other fields would this apply too?
Bertus
Tried that. Tried saving logs. Debug viewer, etc, etc. I have found some issues, but it's these curve balls that you just can't replicate.
Tried it in my system. Works fine. There always seem to be unreplicatable issues from this one customer. They do have a slow internet connection. Not that that should be the problem.
Thanks for your input John.
This is the only place I saw the data in my customer's record.
Hi Bertus,
I have not tried the service order with the API and SDK but with the item order
https://developer.myob.com/api/accountright/v2/sale/order/order_item/
it accepts a "CustomerPurchaseOrderNumber" with leading zeros or alphanumeric data.
It does not like leading spaces however.
If I create a service order directly in AccountRight it also accepts leading zeros and alphanumerics.
Are you sure it is the "CustomerPurchaseOrderNumber" field giving the error and not the "Number" or some other field?
John.
Self-help & Learning
Level up your skills and find answers across all MYOB products
Help Guides
MYOB Academy