You can attach physical vouchers to entiteis such as the GLDailyJournalLineClient entities.
The entity must have a DocumentRef property of type int.
In the code snippet beneath is an example of how to attatch a physical voucher to a GLDailyJournalLine.
// Some File
var bytes = File.ReadAllBytes(@"[Path To File]");
var vc = new VouchersClient()
{
_Data = bytes,
Fileextension = FileextensionsTypes.PDF,
};
// Insert the VoucherClient
var res = await crud.Insert(vc);
var line = lines.FirstOrDefault(); // Acquire some GLDailyJournalLineClient
line.DocumentRef = vc.RowId; // Set the DocumentRef of line (the RowID of a VoucherClient).
await crud.Update(line); // Update the line