to get a personalized navigation.
to get a personalized navigation.
Hi, im trying to create a Transfer Receipt for a Transfer Order, but get "Error creating purchase receipt. No Record found. TransferOrderNbr: '000000067'" but if i manually try to add it in the UI it appears in the list of transfer orders.
Can someone point me in the right direction?
Request to POST/controller/api/v1/PurchaseReceipt
{
"receiptType": {
"Value": "TransferReceipt"
},
"warehouseId": {
"Value": "10"
},
"date": {
"Value": "2022-04-22T00:00:00.000Z"
},
"hold": {
"Value": false
},
"lines": [
{
"operation": "Insert",
"transferOrderNbr": {
"Value": "000000067"
},
"transferOrderLineNbr": {
"Value": 1
},
"transferOrderType": {
"Value": "TransferOrder"
},
"receiptQty": {
"Value": 10.000000
},
"lineNbr": {
"Value": 0
}
},
{
"operation": "Insert",
"transferOrderNbr": {
"Value": "000000067"
},
"transferOrderLineNbr": {
"Value": 3
},
"transferOrderType": {
"Value": "TransferOrder"
},
"receiptQty": {
"Value": 5.000000
},
"lineNbr": {
"Value": 0
}
}
]
}
We were not able to reproduce the same issue:
Have you tried this before with the custom SO type?
Hi Erik,
It sounds like this issue behaves in a similiar way of entering a purchaseOrder via line to a purchaseReceipt, in which case the recommended way to do this would be to first create an empty receipt first and the put the lines after.
We'll test it and get back to you shortly.
Did you test the same but with a normal TR order?
We have not been able to reproduce the issue so far.
Same issue with TR. What can the reason be? Can you please share the settings you have on your TR ordertype?
transferOrderNbr should be the orderNbr from the TR Sales order, correct?
After some more testing and sending fields as in you example, we got TR to work, but not our clone of TR called IB. Why can that be?
We have found that when we use ordertyp IB the errormessage says "Error creating purchase receipt. No Record found. TransferOrderNbr: ..."
But when we got the same error on ordertype TR, the errormessage said SOOrderNbr instead of TransferOrderNbr.
The TR in my case is just the base configuration:
Just to clarify, is it working using the TR ordertype or not?
We can't say for certain why it works with the standard TR type and not a copy of it, but my guess is that since TR differs in fields from other SO types is that the handling might use the orderType to execute the code block that handles transferReceipts when sent via the API. The development team would need to do some investigation to determine this however.
Could you please send us screenshots of how your IB is setup?
Have the development team looked at this? Its working with TR but no IB that is created based on TR template (exact copy).
The api must be hard coded to only use TR for this?
Copyright © 2022 Visma.com. All rights reserved.