Hello all, I am a developer working on an integration with Dynamics AX. I am creating a non-PO based invoice in the system through a C# Web Service.
My issue is that I am defining the "PurchPrice" variable in the "AxdEntity_VendInvoiceInfoLine" of the request and can confirm it is being sent to the program, but when I view the invoice created in AX, the "PurchPrice" is 0. See below:
var lineItem = new AxdEntity_VendInvoiceInfoLine()
{
OrderAccount = "12345",
ItemId = "454545",
Description = "Television",
ReceiveNow = 1,
LineAmount = 499.99,
LineAmountSpecified = true,
PurchPrice = 499.99,
PurchPriceSpecified = true,
Closed = AxdEnum_NoYes.No,
ClosedSpecified = true
};

All other data that I am passing seems to be posting OK, and I can confirm that the "PurchPrice" field from VendInvoiceInfoLine" is the proper field because if I change the value in SQL after posting it, then it displays correctly.
I have also set the prices in the item itself within AX. I set the purchase price and attempted the posting again, but this value still posts as 0.
Can anyone provide guidance on what controls this value being set? Is there additional configuration in AX needed to set this price? Any help at all will be appreciated. Thank you!