I'm programmatically creating sales invoices using the Great Plains Web Services. I'm successfully able to create the sales invoices with line items however ran into a road block where the Unit Price is not being populated in Great Plains. Post below is the code used to populate the Unit Price for the line items.
SalesInvoiceLine line = new SalesInvoiceLine();
line.IsNonInventory = true;
ItemKey itemKey = new ItemKey();
itemKey.Id = item.Type.ToString();
line.ItemKey = itemKey;
Quantity quantity = new Quantity();
quantity.Value = item.Quantity;
line.Quantity = quantity;
line.UnitPrice = CreateMoneyAmount(item.UnitPrice, currencyKey);
I greatly appreciate the help.
Thank You,
Arthur Tam