While our Development teams have been busy working in getting Premium Inventory ready for MYOB Business, they have discovered an issue with the /inventory/item endpoint.
When the item is inventoried and bought, if the field ItemsPerBuyingUnit is passed as empty or blank then when the user trys to edit the item in the MYOB Product, they will be returned the following error:
'Items per buying unit' cannot be edited when an item has been used in a transaction
and
When the item is inventoried and sold, if the field ItemsPerSellingUnit is passed as empty or blank then when the user trys to edit the item in the MYOB Product, they will be returned the following error:
'Items per Selling unit' cannot be edited when an item has been used in a transaction
This is why until our Development teams are able to find a fix for this, the fields ItemsPerBuyingUnit and ItemsPerSellingUnit are required fields when POSTing an INVENTORIED Item via the API. These fields will need to be included in the POST request with values - they can not be passed empty.
If you have any questions, feel free to log a ticket with the Customisation & Integration Team.
Comments
0 comments
Article is closed for comments.