GrayFoxNZ
GrayFoxNZ

Reputation: 361

Acumatica Create PO Receipt via API setting the detail line po data does not create the PO Receipt Orders Link

I am creating a PO receipt via my own custom endpoint using the rest API. I can create the receipt and add the lines ok and even assign a PO Nbr, Line Nbr etc to the line as well. But when I view the PO Receipt in Acumatica the the PO Receipt Order Link does not appear under the Purchase Orders tab.

Is there something I have to do to get this link there? As I think it affects tax amounts when the bill is created.

Thanks

Upvotes: 0

Views: 452

Answers (2)

GrayFoxNZ
GrayFoxNZ

Reputation: 361

Not really an answer and not sure if this is a bug in Acumatica.

But if make the call

{
"CreateBill": {"value": true},
"VendorID": {"value": "500508"},
"VendorRef": {"value": "VendorREF"},
"Details": [
    {
        "InventoryID": {"value":"E/104038"},
        "ReceiptQty": {"value": 1},
        "POOrderNbr": {"value": "40393" },
        "POLineNbr": {"value": 1},
        "POOrderType": {"value": "Normal"}
       
    }
]

}

On the Default API endpoint, the receipt appears on the PO.

If I make the same call on my own custom endpoint it doesnt

Upvotes: 0

Fernando
Fernando

Reputation: 433

What Acumatica version are you working with?

I created a PO Receipt via Postman using this reference.

I adapted it to my data (Acumatica Sales Demo data) as follows: enter image description here

The result looks correct in Acumatica:

  • We have the Purchase Receipt with the correct reference to the source PO: enter image description here

  • We have the reference to the Purchase Receipt in the PO page: enter image description here

Upvotes: 1

Related Questions