Before, I had this program working. However, im not sure if I either deleted something, or i forgot to add something, but the more I look at it, the less wrong it looks.
Maybe all I need is a fresh pair of eyes to look at it, but from what I can tell, this is 100% correct, and the breakpoints tell me that everything is correct.
This isn't adding to quickbooks inventory, I don't know why, it doesn't make sense.
public void ProductAdd(IMsgSetRequest requestMsgSet)
{
IItemInventoryAdd itemInventoryAddRq = requestMsgSet.AppendItemInventoryAddRq();
#region ADD PRODUCT INFORMATION
for (int i = 0; i <= this.Form.productsList.Items.Count - 1; i++)
{
itemInventoryAddRq.Name.SetValue(Form.productID[i].ToString());
itemInventoryAddRq.SalesDesc.SetValue(Form.productsList.Items[i].ToString().ToUpper());
itemInventoryAddRq.PurchaseDesc.SetValue(Form.productsList.Items[i].ToString().ToUpper());
itemInventoryAddRq.SalesPrice.SetValue(Form.QBprice[i]);
itemInventoryAddRq.AssetAccountRef.FullName.SetValue("Inventory Asset");
itemInventoryAddRq.COGSAccountRef.FullName.SetValue("Cost of Goods Sold");
itemInventoryAddRq.ManufacturerPartNumber.SetValue(Form.QBsku[i].ToString().ToUpper());
IMsgSetResponse responseMsgSet = sessionManager.DoRequests(requestMsgSet);
}
#endregion
}