on 10-17-2018 4:17 PM
Hi Guys just creating a simple invoice in business one but I am getting a -10 eror in the Oinvoice.Add line.
public void CreateInvoice(string customerCode, double fuelQty, double price)
{
try
{
SAPbobsCOM.Documents oInvoice = company.GetBusinessObject(BoObjectTypes.oInvoices);
oInvoice.DocDate = DateTime.Now;
oInvoice.CardCode = customerCode;
oInvoice.Lines.ItemDescription="David Test";
oInvoice.Lines.ItemCode = "DSL";
oInvoice.Lines.Quantity = fuelQty;
oInvoice.Lines.Price = price;
int addInvoice = oInvoice.Add();
if (addInvoice > 0 & addInvoice < 0)
{
}
}catch(Exception ex)
{
}
}
Hi David,
This tag is for the SAP BusinessObjects SDK, and you're looking for help with SAP BusinessOne. I suggest asking this same question in one of the B1 tags because you probably won't get a response here.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.