Page tree
Skip to end of metadata
Go to start of metadata

This function is used to create a new invoice from the Vendor in the system

Parameters

Used to call the function

  1. obj - TVendorInvoice

Returns

Returns the following

 

Create Invoice Head
            IItemServiceservice service = new IItemServiceservice();
            service.BasicSecurityValue = new BasicSecurity() { Username = "ws.dev", Password = "Code2make" };
            var invoice = service.CreateVendorInvoice(new TVendorInvoice() {
                Amount = 1000,
                CurrencyCode = "ISK",
                InvoiceDate = DateTime.Now,
                InvoiceNumber = "SK-1234",
                Reference = "DK987",
                Vendor = "default",
                InvoiceType = TComboBox_DebCred._cbCredit
            });