Hi,
I am using a custom OData web service page to modify Transfer Order lines and post shipments and receipts. I am able to set the "Qty to Ship" field on each line and post a shipment. After posting the shipment, I set the "Qty to Receive" fields for the in-transit lines and get the error "Base Qty. to Receive must be 0" when posting a receipt.
For receipts, my C# code sets the "Qty to Receive" fields, saves changes, and calls a ServiceEnabled procedure in the BC extension. This procedure passes the Transfer Order header to the codeunit, "TransferOrder-Post Receipt". This is similar to what I have done for posting purchase receipts and customer return receipts.
I am able to post a shipment from my code and then manually receive it in the BC UI and it works just fine.
Has anyone run into this before?
Thank you,
Noah