on 2018 Oct 17 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)
{
}
}
Request clarification before answering.
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 |
---|---|
59 | |
10 | |
8 | |
8 | |
7 | |
6 | |
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.