Client Invoice (XML)

CLIENT INVOICES (header)

Name Type Mandatory Description
<Record Type=”22″> Long Y Type of object to import. Type 22 is for invoice headers
<DBId></DBId> Long Y Database ID in DeMaSy
<Number></Number> Char(50) Y Invoice Number
<ClientName> </ClientName> Char(75) Y Client Name (has to match existing client name)
NB: If the unique client file number is provided the name can be omitted
<Date></Date> Date/Time Y Invoice date (YYYYMMDD)
<Currency> </Currency> Char(10) Y Currency (ISO code)
<CurrencyRate></CurrencyRate> Double N Currency rate
<Description></Description> Char(255) N Description
<Type></Type> Integer Y Type transaction:
1 = Invoice / 8 = Credit note
3 = Permanent Order / 6 = Initial
7 = Advance payment
9 = Write Off
<ClientFileNumber></ClientFileNumber> Double Y Client number
(mandatory if no name specified)
<ReminderDate></ReminderDate> Date/Time N Reminder date (YYYYMMDD)
</Record> Y End of block

CLIENT INVOICES (details)

Name Type Mandatory Description
< Record Type=”23″> Long Y Type of object to import. 23 = Client invoice detail
<DBId></DBId> Long Y Database ID in DeMaSy
<InvoiceNumber></InvoiceNumber> Char(50) Y Invoice number
<ArticleCode> </ArticleCode> Char(50) N Article code
<ArticleName> </ArticleName> Char(50) / Article name
<CyArticlePrice></CyArticlePrice> Double N Unit price (transaction currency)
<ArticlePrice></ArticlePrice> Double N Unit price (capital currency)
<ArticleNumber></ArticleNumber> Double N Quantity of article
<CyAmount></CyAmount> Double Y Amount without VAT (transaction currency)
<Amount></Amount> Double N Amount without VAT (capital currency) – optional
<VATCode></VATCode> Char 20 Y VAT Code
<VATCodeRate></VATCodeRate> Double Y VAT Rate
<CyVATValue></CyVATValue> Double Y VAT value (transaction currency)
<VATValue></VATValue> Double N VAT value (capital currency) – optional
<Description> </Description> Char(255) N Description
<DGLAccountNumber></DGLAccountNumber> Char(50) N Debit account number (empty = client default)
<CGLAccountNumber></CGLAccountNumber> Char(50) N Credit account number (empty = client default)
<PLCenterCode></PLCenterCode> Char(50) N Profit and loss center code
</Record> Y End of block

If an article code is specified, an article price and an article number must be specified.
The Amount must be equal to the ArticleNumber * ArticlePrice
The CyAmount must be equal to the ArticleNumber * CyArticlePrice
The VATValue must be equal to the Amount * VATCodeRate / 100.
The CyVATValue must be equal to the CyAmount * VATCodeRate / 100.
If the DGLAccountNumber is specified and not the CGLAccountNumber the CGLAccountNumber will be replaced by the Client General Ledger account specified in the options.
If the CGLAccountNumber is specified and not the DGLAccountNumber the DGLAccountNumber will be replaced by the Client General Ledger account specified in the options.
If the 2 Accounts are specified, one of the two accounts must be the Client General Ledger account.
In the following block, a detail will be generated for the invoice number 00001 with only an amount and a VAT.

PDF version
Excel version
Excel version (combined)