{"id":1419,"date":"2014-05-21T13:32:46","date_gmt":"2014-05-21T12:32:46","guid":{"rendered":"http:\/\/help.sdna.lu\/?p=1419&#038;lang=en"},"modified":"2020-08-18T13:25:19","modified_gmt":"2020-08-18T12:25:19","slug":"client-invoice","status":"publish","type":"post","link":"https:\/\/sdna.lu\/?p=1419","title":{"rendered":"Client Invoice (XML)"},"content":{"rendered":"<h3><b><span style=\"text-decoration: underline;\">CLIENT INVOICES (header)<\/span><\/b><\/h3>\n<table>\n<tbody>\n<tr>\n<th width=\"350\">Name<\/th>\n<th width=\"20\">Type<\/th>\n<th width=\"15\">Mandatory<\/th>\n<th width=\"250\">Description<\/th>\n<\/tr>\n<tr>\n<td>&lt;<span style=\"color: #993300;\">Record <\/span><span style=\"color: #ff0000;\">Type<\/span>=\u201d<span style=\"color: #0000ff;\">22<\/span>\u2033&gt;<\/td>\n<td>Long<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Type of object to import. Type 22 is for invoice headers<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;DBId&gt;&lt;\/DBId&gt;<\/span><\/td>\n<td>Long<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Database ID in DeMaSy<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;Number&gt;&lt;\/Number&gt;<\/span><\/td>\n<td>Char(50)<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Invoice Number<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;ClientName&gt; &lt;\/ClientName&gt;<\/span><\/td>\n<td>Char(75)<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Client Name (has to match existing client name)<br \/>\nNB: If the unique client file number is provided the name can be omitted<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;Date&gt;&lt;\/Date&gt;<\/span><\/td>\n<td>Date\/Time<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Invoice date (YYYYMMDD)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;Currency&gt; &lt;\/Currency&gt;<\/span><\/td>\n<td>Char(10)<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Currency (ISO code)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;CurrencyRate&gt;&lt;\/CurrencyRate&gt;<\/span><\/td>\n<td>Double<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Currency rate<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;Description&gt;&lt;\/Description&gt;<\/span><\/td>\n<td>Char(255)<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Description<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;Type&gt;&lt;\/Type&gt;<\/span><\/td>\n<td>Integer<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Type transaction:<br \/>\n1 = Invoice \/ 8 = Credit note<br \/>\n3 = Permanent Order \/ 6 = Initial<br \/>\n7 = Advance payment<br \/>\n9 = Write Off<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;ClientFileNumber&gt;&lt;\/ClientFileNumber&gt;<\/span><\/td>\n<td><span style=\"display: inline !important; float: none; background-color: transparent; color: #191e23; cursor: text; font-family: 'Noto Serif'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;\">Double<\/span><\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Client number<br \/>\n(mandatory if no name specified)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;ReminderDate&gt;&lt;\/ReminderDate&gt;<\/span><\/td>\n<td>Date\/Time<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Reminder date (YYYYMMDD)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;\/Record&gt;<\/span><\/td>\n<td><\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>End of block<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><b><span style=\"text-decoration: underline;\">CLIENT INVOICES (details)<\/span><\/b><\/h3>\n<table>\n<tbody>\n<tr>\n<th width=\"350\">Name<\/th>\n<th width=\"20\">Type<\/th>\n<th width=\"15\">Mandatory<\/th>\n<th width=\"250\">Description<\/th>\n<\/tr>\n<tr>\n<td>&lt; <span style=\"color: #993300;\">Record<\/span> <span style=\"color: #ff0000;\">Type<\/span>=\u201d<span style=\"color: #0000ff;\">23<\/span>\u2033&gt;<\/td>\n<td>Long<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Type of object to import. 23 = Client invoice detail<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;DBId&gt;&lt;\/DBId&gt;<\/span><\/td>\n<td>Long<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Database ID in DeMaSy<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;InvoiceNumber&gt;&lt;\/InvoiceNumber&gt;<\/span><\/td>\n<td>Char(50)<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Invoice number<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;ArticleCode&gt; &lt;\/ArticleCode&gt;<\/span><\/td>\n<td>Char(50)<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Article code<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;ArticleName&gt; &lt;\/ArticleName&gt;<\/span><\/td>\n<td>Char(50)<\/td>\n<td align=\"center\" valign=\"top\">\/<\/td>\n<td>Article name<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;CyArticlePrice&gt;&lt;\/CyArticlePrice&gt;<\/span><\/td>\n<td>Double<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Unit price (transaction currency)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;ArticlePrice&gt;&lt;\/ArticlePrice&gt;<\/span><\/td>\n<td>Double<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Unit price (capital currency)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;ArticleNumber&gt;&lt;\/ArticleNumber&gt;<\/span><\/td>\n<td>Double<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Quantity of article<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;CyAmount&gt;&lt;\/CyAmount&gt;<\/span><\/td>\n<td>Double<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>Amount without VAT (transaction currency)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;Amount&gt;&lt;\/Amount&gt;<\/span><\/td>\n<td>Double<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Amount without VAT (capital currency) &#8211; optional<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;VATCode&gt;&lt;\/VATCode&gt;<\/span><\/td>\n<td>Char 20<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>VAT Code<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;VATCodeRate&gt;&lt;\/VATCodeRate&gt;<\/span><\/td>\n<td>Double<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>VAT Rate<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;CyVATValue&gt;&lt;\/CyVATValue&gt;<\/span><\/td>\n<td>Double<\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>VAT value (transaction currency)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;VATValue&gt;&lt;\/VATValue&gt;<\/span><\/td>\n<td>Double<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>VAT value (capital currency) &#8211; optional<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;Description&gt; &lt;\/Description&gt;<\/span><\/td>\n<td>Char(255)<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Description<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;DGLAccountNumber&gt;&lt;\/DGLAccountNumber&gt;<\/span><\/td>\n<td>Char(50)<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Debit account number (empty = client default)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;CGLAccountNumber&gt;&lt;\/CGLAccountNumber&gt;<\/span><\/td>\n<td>Char(50)<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Credit account number (empty = client default)<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;PLCenterCode&gt;&lt;\/PLCenterCode&gt;<\/span><\/td>\n<td>Char(50)<\/td>\n<td align=\"center\" valign=\"top\">N<\/td>\n<td>Profit and loss center code<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #993300;\">&lt;\/Record&gt;<\/span><\/td>\n<td><\/td>\n<td align=\"center\" valign=\"top\">Y<\/td>\n<td>End of block<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If an article code is specified, an article price and an article number must be specified.<br \/>\nThe Amount must be equal to the ArticleNumber * ArticlePrice<br \/>\nThe CyAmount must be equal to the ArticleNumber * CyArticlePrice<br \/>\nThe VATValue must be equal to the Amount * VATCodeRate \/ 100.<br \/>\nThe CyVATValue must be equal to the CyAmount * VATCodeRate \/ 100.<br \/>\nIf the DGLAccountNumber is specified and not the CGLAccountNumber the CGLAccountNumber will be replaced by the Client General Ledger account specified in the options.<br \/>\nIf the CGLAccountNumber is specified and not the DGLAccountNumber the DGLAccountNumber will be replaced by the Client General Ledger account specified in the options.<br \/>\nIf the 2 Accounts are specified, one of the two accounts must be the Client General Ledger account.<br \/>\nIn the following block, a detail will be generated for the invoice number 00001 with only an amount and a VAT.<\/p>\n<p><a href=\"https:\/\/sdna.lu\/?media_dl=4889\">PDF version<\/a><br \/>\n<a href=\"https:\/\/sdna.lu\/?media_dl=10274\">Excel version<\/a><br \/>\n<a href=\"https:\/\/sdna.lu\/?media_dl=5256\">Excel version (combined)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CLIENT INVOICES (header) Name Type Mandatory Description &lt;Record Type=\u201d22\u2033&gt; Long Y Type of object to import. Type 22 is for invoice headers &lt;DBId&gt;&lt;\/DBId&gt; Long Y Database ID in DeMaSy &lt;Number&gt;&lt;\/Number&gt; Char(50) Y Invoice Number &lt;ClientName&gt; &lt;\/ClientName&gt; Char(75) Y Client Name (has to match existing client name) NB: If the unique client file number is provided [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[237],"tags":[428,15,21,12],"class_list":["post-1419","post","type-post","status-publish","format-standard","hentry","category-interface-utils","tag-client","tag-interface","tag-invoice","tag-xml"],"_links":{"self":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/1419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1419"}],"version-history":[{"count":39,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/1419\/revisions"}],"predecessor-version":[{"id":11927,"href":"https:\/\/sdna.lu\/index.php?rest_route=\/wp\/v2\/posts\/1419\/revisions\/11927"}],"wp:attachment":[{"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdna.lu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}