Quantcast
Channel: e-conomic Global API Forum
Viewing all articles
Browse latest Browse all 2527

Answered: Use API to link Document to invoice

$
0
0
Hi,

I'm assuming your are talking about supplier invoices which means cashbook.

if that's right, then you have to use RegisterPdfVoucher from CashBook EconomicSession object passing the file binaries, the voucher number and the cashbookentrydate date.

please find a code i used in .Net:

var pdfFile = System.IO.File.ReadAllBytes(pdfFilePath);

session.CashBook.RegisterPdfVoucher(pdfData, cashBookEntryData.VoucherNumber, cashBookEntryData.Date);

 

Regards

Viewing all articles
Browse latest Browse all 2527

Trending Articles