to get a personalized navigation.
to get a personalized navigation.
{
"hold": {
"value": false
},
"lines": [
{
"operation": "Update",
"lineNumber": {
"value": 1
},
"inventory": {
"value": "065-04594"
},
"orderQty": {
"value": 1
},
"unitCost": {
"value": 500
}
}
],
"note": {
"value": "test xxxxxxxxxxx"
}
}
Hello,
what is the current value of the line that you'd like to update ?
- You can try adding UOM since InventoryID is also included in the line. In the ERP, the system first removes all the line values, then fetching the data accordingly.
- If you would only like to update quantity, please just send OrderQty in the request.
- If you need to update the whole line then please try deleting the line first and inserting together with all the inventory, uom, orderqty etc values.
The current value is the same (1).
I actually just want to update unitCost, note and hold, but then i get an error that say quantity have to be > 0.
That is why i added orderQty.
This can also be related to that, we're unable to edit Purchase Order when it's Hold:False so I'd recommend trying updating the line by sending only the values for the fields you'd like to update, then sending another PUT for Hold:false.
Copyright Ā© 2022 Visma.com. All rights reserved.