Loading
Uniconta
  • Search
  • Uniconta
    • Functions
      • What is Uniconta ?
      • Modules
        • General Ledger
        • Customer
        • Sales order
        • Vendor
        • Purchase
        • Inventory
        • Logistics
        • Project
        • Production
        • CRM
        • Fixed assets
        • AutoBanking
        • Dashboard
        • Company
        • Uniconta Scan
        • Tools
    • Apps and add-ons
      • Assistant App
      • Work App
      • Upload App
      • Paperflow
      • Addon Store
    • Download
      • Uniconta for Windows
      • Download for Developers
      • Free trial signup
  • Developers
    • Become an integration partner
    • Documentation
    • Samples
    • Add-on solutions and users
    • Downloads
  • News
    • Blog
    • News
    • Uniconta Update
    • Customer cases
  • Customer Cases
  • Contact
Search
Generic filters
Free trial signup

Developers Unipedia

  • API
    • API
    • User defined fields
    • User defined tables
    • Saving a Session
    • Posting an Invoice
    • Post Invoice and get PDF
    • Localization
    • Attach physical voucher to entities
    • Server-Login User
    • How to find C# Property from Uniconta Label
    • Minimize network traffic and optimize speed
    • Export pictures from Uniconta
    • OIOUBL Document Mapping and Send (NemHandel)
  • Plugins
    • Plugins
    • Debug Uniconta Plugins
    • Refreshing UI with plugins
    • How to use Uniconta Plugin
    • Develop a user plugin
    • Event Handling
    • Global Script
    • How to capture menu events
    • How to open a form in Uniconta from Plugin
    • Open new content in a IContentPluginBase plugin
    • Adding plugin in a menu
    • How to add user parameter in plugin menu
    • How to create plugin with Devexpress Library
    • Synchronize Entity Support in form page
    • Develop a PageEventBase Plugin
    • Logging Exceptions on local machine
    • Create Custom Uniconta Pages From Github Code
    • Web frame integration
  • OData
    • CRUD operations in OData
    • ODATA REST API – Testing with Postman

Attach physical voucher to entities

February 12th, 2019 January 7th, 2021 < 1 minute
Print Friendly, PDF & Email

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

 

Categories: API, Developers Unipedia
Home » Developers Unipedia » Attach physical voucher to entities

Get in touch with us

Uniconta

  • Uniconta
  • Modules
  • Downloads
  • Free trial signup
  • Subscription Terms
  • Privacy Policy
  • System Status

PARTNER

  • Resellers
  • For Developers
  • Uniconta API key application
  • Uniconta Partner info

INFO

  • News
  • Updates
  • Customer cases
  • Video
  • IT Security
  • Backup procedure
  • About us
  • Management

Support

  • Unipedia
  • API information
  • Contacts
  • Visit a Country Site
    • Dansk
    • Uniconta GermanyDeutsch
    • Eesti
    • Uniconta GermanyÍslenska
    • Lietuva
    • Uniconta NetherlandsNederlands
    • Norsk
    • English
Uniconta
© Copyright 2025 | All rights reserved | info@uniconta.com | Terms & Conditions
Facebook LinkedIn Youtube