Hi Ifigeneia,
Try this:
Items oItem = (Items)oCompany.GetBusinessObject(BoObjectTypes.oItems); if (oItem.GetByKey("A00001")) { for (int i = 0; i <= oItem.PriceList.Count - 1; i++) { oItem.PriceList.SetCurrentLine(i); oItem.PriceList.Price = oItem.PriceList.Price + 1; //Add 1 to my price } if(oItem.Update() != 0) MessageBox.Show(oCompany.GetLastErrorDescription()); }
Hope it helps.
Kind Regards,
Diego Lother
Add comment