...
Used to call the function
- obj id - Integer
- TAttachmentFile TVendor
Returns
Returns the following
- NONE
Code Block | ||||
---|---|---|---|---|
| ||||
IItemServiceservice service = new IItemServiceservice();
service.BasicSecurityValue = new BasicSecurity() { Username = "ws.dev", Password = "Code2make" };
var invoice = new TVendorInvoice()
{
Amount = 1000,
CurrencyCode = "ISK",
InvoiceDate = DateTime.Now,
InvoiceNumber = "SK-1235",
Reference = "DK985",
Vendor = "default",
InvoiceType = TComboBox_DebCred._cbCredit
};
string filename = "2017-05-25-F13F35C6-DE84-4E05-986B-D5F0FE4188DD.pdf";
service.UploadVendorInvoiceAttachment(invoice.ID, new TAttachmentFile() { Name = filename, Data = System.IO.File.ReadAllBytes(@"C:\temp\"+ filename) });
|
Related articles
Content by Label | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...