MARX#41719: UBL ondersteuning voor Rochdale via Mareon: UBL implementatie
svn path=/Website/branches/v2017.1/; revision=35047
This commit is contained in:
@@ -41,6 +41,13 @@
|
||||
|
||||
}
|
||||
|
||||
function getXMLexample3()
|
||||
{
|
||||
var l_ex_ubl = document.getElementById("ex_ubl_factuur").value;
|
||||
var l_xmlsend = document.getElementById("sendxml").value = l_ex_ubl;
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body style='background-color:#c0c0c0'>
|
||||
@@ -60,7 +67,9 @@
|
||||
<span>U kunt 2 type berichten sturen:
|
||||
<select id="apiname">
|
||||
<option value="MLD_OPDR_SIDB">1. Opdrachtstatus bericht</option>
|
||||
<option value="FIN_FACTUUR_SIDB">2. Factuurbericht</option>
|
||||
<option value="FIN_FACTUUR_SIDB">2a. Factuurbericht (sidb)</option>
|
||||
<option value="FIN_FACTUUR_ETIMSIDB">2b. Factuurbericht (etim)</option>
|
||||
<option value="FIN_FACTUUR_UBL">2c. Factuurbericht (ubl)</option>
|
||||
</select></span><span style="font-size:9pt"> (Maak uw keuze)</span>
|
||||
<br/>
|
||||
<span style="font-size:16pt">C.</span>
|
||||
@@ -70,7 +79,7 @@
|
||||
<span style="font-size:16pt">D.</span>Vul of plak hieronder de XML in die gepost gaat worden, voorbeelden ziet u aan de rechterzijde:
|
||||
<br/>
|
||||
<table>
|
||||
<tr><td height="400px" rowspan='2'>
|
||||
<tr><td height="400px" rowspan='3'>
|
||||
<textarea id="sendxml" style="height:500px;width:800px">
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<MaintenanceStatus>
|
||||
@@ -286,6 +295,291 @@
|
||||
</Invoice></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
<input type="button" onclick="getXMLexample3()" value="<<">
|
||||
</td>
|
||||
<td>
|
||||
<span>Voorbeeld van een factuurbericht (ubl)</span><br/>
|
||||
<textarea id="ex_ubl_factuur" style="height:200px;width:800px" readonly>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2
|
||||
http://docs.oasis-open.org/ubl/os-UBL-2.1/xsd/maindoc/UBL-Invoice-2.1.xsd">
|
||||
|
||||
<cbc:CustomizationID>urn:cen.eu:en16931:2017</cbc:CustomizationID>
|
||||
|
||||
<cbc:ProfileID>urn:www.cenbii.eu:profile:bii04:ver2.0</cbc:ProfileID>
|
||||
|
||||
<cbc:ID>20170102</cbc:ID>
|
||||
<cbc:IssueDate>2017-02-16</cbc:IssueDate>
|
||||
<cbc:DueDate>2017-03-18</cbc:DueDate>
|
||||
<cbc:InvoiceTypeCode listID="UNCL1001" listAgencyID="6">380</cbc:InvoiceTypeCode>
|
||||
<cbc:TaxPointDate>2017-02-16</cbc:TaxPointDate>
|
||||
<cbc:DocumentCurrencyCode listID="ISO 4217 Alpha" listAgencyID="6">EUR</cbc:DocumentCurrencyCode>
|
||||
<cbc:AccountingCost>RK20172013</cbc:AccountingCost>
|
||||
<cac:InvoicePeriod>
|
||||
<cbc:StartDate>2017-02-14</cbc:StartDate>
|
||||
<cbc:EndDate>2017-02-14</cbc:EndDate>
|
||||
</cac:InvoicePeriod>
|
||||
|
||||
<cac:OrderReference>
|
||||
<cbc:ID>20170205</cbc:ID>
|
||||
</cac:OrderReference>
|
||||
|
||||
<cac:AccountingSupplierParty>
|
||||
<cac:Party>
|
||||
<cac:PartyName>
|
||||
<cbc:Name>UBL Platform</cbc:Name>
|
||||
</cac:PartyName>
|
||||
<cac:PostalAddress>
|
||||
<cbc:StreetName>Readystreet 9a</cbc:StreetName>
|
||||
<cbc:CityName>Amsterdam</cbc:CityName>
|
||||
<cbc:PostalZone>9876 YZ</cbc:PostalZone>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2" listAgencyID="6">NL</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
<cac:PartyTaxScheme>
|
||||
<cbc:CompanyID schemeID="NL:VAT" schemeAgencyID="ZZZ">NL123456789B01</cbc:CompanyID>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:PartyTaxScheme>
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>UBL Ketentest BV</cbc:RegistrationName>
|
||||
<cbc:CompanyID>12345678</cbc:CompanyID>
|
||||
</cac:PartyLegalEntity>
|
||||
<cac:Contact>
|
||||
<cbc:Telephone>06 987654321</cbc:Telephone>
|
||||
<cbc:ElectronicMail>info@gbned.nl</cbc:ElectronicMail>
|
||||
</cac:Contact>
|
||||
</cac:Party>
|
||||
</cac:AccountingSupplierParty>
|
||||
|
||||
<cac:AccountingCustomerParty>
|
||||
<cac:Party>
|
||||
<cac:PartyName>
|
||||
<cbc:Name>UBL Ready</cbc:Name>
|
||||
</cac:PartyName>
|
||||
<cac:PostalAddress>
|
||||
<cbc:StreetName>Demostreet 1</cbc:StreetName>
|
||||
<cbc:CityName>Arnhem</cbc:CityName>
|
||||
<cbc:PostalZone>1234 AB</cbc:PostalZone>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2" listAgencyID="6">NL</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:PostalAddress>
|
||||
|
||||
<cac:PartyLegalEntity>
|
||||
<cbc:RegistrationName>UBL Ready</cbc:RegistrationName>
|
||||
</cac:PartyLegalEntity>
|
||||
<cac:Contact>
|
||||
<cbc:Name>John Doe</cbc:Name>
|
||||
<cbc:Telephone>070-1111111</cbc:Telephone>
|
||||
<cbc:ElectronicMail>invoices@ublready.com</cbc:ElectronicMail>
|
||||
</cac:Contact>
|
||||
</cac:Party>
|
||||
</cac:AccountingCustomerParty>
|
||||
|
||||
<cac:Delivery>
|
||||
<cbc:ActualDeliveryDate>2017-02-16</cbc:ActualDeliveryDate>
|
||||
<cac:DeliveryLocation>
|
||||
<cac:Address>
|
||||
<cbc:StreetName>Stocklane 10</cbc:StreetName>
|
||||
<cbc:CityName>Arnhem</cbc:CityName>
|
||||
<cbc:PostalZone>4321 BA</cbc:PostalZone>
|
||||
<cac:Country>
|
||||
<cbc:IdentificationCode listID="ISO3166-1:Alpha2" listAgencyID="6">NL</cbc:IdentificationCode>
|
||||
</cac:Country>
|
||||
</cac:Address>
|
||||
</cac:DeliveryLocation>
|
||||
</cac:Delivery>
|
||||
|
||||
<cac:PaymentMeans>
|
||||
<cbc:PaymentMeansCode listID="UNCL4461">31</cbc:PaymentMeansCode>
|
||||
<cac:PayeeFinancialAccount>
|
||||
<cbc:ID schemeID='IBAN'>NL23ABNA0123456789</cbc:ID>
|
||||
<cac:FinancialInstitutionBranch>
|
||||
<cac:FinancialInstitution>
|
||||
<cbc:ID schemeID='BIC'>ABNANL2A</cbc:ID>
|
||||
</cac:FinancialInstitution>
|
||||
</cac:FinancialInstitutionBranch>
|
||||
</cac:PayeeFinancialAccount>
|
||||
</cac:PaymentMeans>
|
||||
|
||||
<cac:PaymentTerms>
|
||||
<cbc:Note>Payments within 30 days.</cbc:Note>
|
||||
</cac:PaymentTerms>
|
||||
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReasonCode listID="UNCL5189">64</cbc:AllowanceChargeReasonCode>
|
||||
<cbc:AllowanceChargeReason>Invoice allowance (VAT low 6%)</cbc:AllowanceChargeReason>
|
||||
<cbc:MultiplierFactorNumeric>1</cbc:MultiplierFactorNumeric>
|
||||
<cbc:Amount currencyID="EUR">22</cbc:Amount>
|
||||
<cbc:BaseAmount currencyID="EUR">220</cbc:BaseAmount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID schemeID="UNCL5305">S</cbc:ID>
|
||||
<cbc:Percent>6</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReasonCode listID="UNCL5189">64</cbc:AllowanceChargeReasonCode>
|
||||
<cbc:AllowanceChargeReason>Invoice allowance (VAT high 21%)</cbc:AllowanceChargeReason>
|
||||
<cbc:MultiplierFactorNumeric>1</cbc:MultiplierFactorNumeric>
|
||||
<cbc:Amount currencyID="EUR">18</cbc:Amount>
|
||||
<cbc:BaseAmount currencyID="EUR">180</cbc:BaseAmount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID schemeID="UNCL5305">S</cbc:ID>
|
||||
<cbc:Percent>21</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReasonCode listID="UNCL7161">ZZZ</cbc:AllowanceChargeReasonCode>
|
||||
<cbc:AllowanceChargeReason>Handling costs</cbc:AllowanceChargeReason>
|
||||
<cbc:Amount currencyID="EUR">10</cbc:Amount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID schemeID="UNCL5305">S</cbc:ID>
|
||||
<cbc:Percent>21</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:AllowanceCharge>
|
||||
<cac:TaxTotal>
|
||||
<cbc:TaxAmount currencyID="EUR">48.00</cbc:TaxAmount>
|
||||
<cac:TaxSubtotal>
|
||||
<cbc:TaxableAmount currencyID="EUR">198</cbc:TaxableAmount>
|
||||
<cbc:TaxAmount currencyID="EUR">11.88</cbc:TaxAmount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID schemeID="UNCL5305">S</cbc:ID>
|
||||
<cbc:Percent>6.00</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
<cac:TaxSubtotal>
|
||||
<cbc:TaxableAmount currencyID="EUR">172</cbc:TaxableAmount>
|
||||
<cbc:TaxAmount currencyID="EUR">36.12</cbc:TaxAmount>
|
||||
<cac:TaxCategory>
|
||||
<cbc:ID schemeID="UNCL5305">S</cbc:ID>
|
||||
<cbc:Percent>21.00</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:TaxCategory>
|
||||
</cac:TaxSubtotal>
|
||||
</cac:TaxTotal>
|
||||
|
||||
<cac:LegalMonetaryTotal>
|
||||
<cbc:LineExtensionAmount currencyID="EUR">400.00</cbc:LineExtensionAmount>
|
||||
<cbc:TaxExclusiveAmount currencyID="EUR">370.00</cbc:TaxExclusiveAmount>
|
||||
<cbc:TaxInclusiveAmount currencyID="EUR">418.00</cbc:TaxInclusiveAmount>
|
||||
<cbc:AllowanceTotalAmount currencyID="EUR">40.00</cbc:AllowanceTotalAmount>
|
||||
<cbc:ChargeTotalAmount currencyID="EUR">10.00</cbc:ChargeTotalAmount>
|
||||
<cbc:PayableAmount currencyID="EUR">418.00</cbc:PayableAmount>
|
||||
</cac:LegalMonetaryTotal>
|
||||
|
||||
<cac:InvoiceLine>
|
||||
<cbc:ID>5</cbc:ID>
|
||||
<cbc:InvoicedQuantity unitCode="ZZ">1.00</cbc:InvoicedQuantity>
|
||||
<cbc:LineExtensionAmount currencyID="EUR">50.00</cbc:LineExtensionAmount>
|
||||
<cac:Item>
|
||||
<cbc:Description>Book The digital highway in Holland</cbc:Description>
|
||||
<cbc:Name>The digital highway</cbc:Name>
|
||||
<cac:SellersItemIdentification>
|
||||
<cbc:ID>BK0232</cbc:ID>
|
||||
</cac:SellersItemIdentification>
|
||||
<cac:ClassifiedTaxCategory>
|
||||
<cbc:ID schemeID="UNCL5305">S</cbc:ID>
|
||||
<cbc:Percent>6.00</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:ClassifiedTaxCategory>
|
||||
</cac:Item>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="EUR">50.00</cbc:PriceAmount>
|
||||
<cbc:BaseQuantity unitCode="ZZ">1.00</cbc:BaseQuantity>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
|
||||
<cac:InvoiceLine>
|
||||
<cbc:ID>10</cbc:ID>
|
||||
<cbc:InvoicedQuantity unitCode="ZZ">2.00</cbc:InvoicedQuantity>
|
||||
<cbc:LineExtensionAmount currencyID="EUR">170.00</cbc:LineExtensionAmount>
|
||||
<cac:Item>
|
||||
<cbc:Description>Book Coding UBL for orders and invoices</cbc:Description>
|
||||
<cbc:Name>Coding UBL</cbc:Name>
|
||||
<cac:SellersItemIdentification>
|
||||
<cbc:ID>BK3025</cbc:ID>
|
||||
</cac:SellersItemIdentification>
|
||||
<cac:ClassifiedTaxCategory>
|
||||
<cbc:ID schemeID="UNCL5305">S</cbc:ID>
|
||||
<cbc:Percent>6.00</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:ClassifiedTaxCategory>
|
||||
</cac:Item>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="EUR">85.00</cbc:PriceAmount>
|
||||
<cbc:BaseQuantity unitCode="ZZ">2.00</cbc:BaseQuantity>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
|
||||
<cac:InvoiceLine>
|
||||
<cbc:ID>15</cbc:ID>
|
||||
<cbc:InvoicedQuantity unitCode="ZZ">1.00</cbc:InvoicedQuantity>
|
||||
<cbc:LineExtensionAmount currencyID="EUR">180.00</cbc:LineExtensionAmount>
|
||||
<cac:AllowanceCharge>
|
||||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
||||
<cbc:AllowanceChargeReason>Price discount</cbc:AllowanceChargeReason>
|
||||
<cbc:MultiplierFactorNumeric>10</cbc:MultiplierFactorNumeric>
|
||||
<cbc:Amount currencyID="EUR">20.00</cbc:Amount>
|
||||
<cbc:BaseAmount currencyID="EUR">200</cbc:BaseAmount>
|
||||
</cac:AllowanceCharge>
|
||||
<cac:Item>
|
||||
<cbc:Description>Conversion softwarepackage to UBL</cbc:Description>
|
||||
<cbc:Name>Conversion UBL</cbc:Name>
|
||||
<cac:SellersItemIdentification>
|
||||
<cbc:ID>SW4026</cbc:ID>
|
||||
</cac:SellersItemIdentification>
|
||||
<cac:ClassifiedTaxCategory>
|
||||
<cbc:ID schemeID="UNCL5305">S</cbc:ID>
|
||||
<cbc:Percent>21.00</cbc:Percent>
|
||||
<cac:TaxScheme>
|
||||
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
|
||||
</cac:TaxScheme>
|
||||
</cac:ClassifiedTaxCategory>
|
||||
</cac:Item>
|
||||
<cac:Price>
|
||||
<cbc:PriceAmount currencyID="EUR">200.00</cbc:PriceAmount>
|
||||
<cbc:BaseQuantity unitCode="ZZ">1.00</cbc:BaseQuantity>
|
||||
</cac:Price>
|
||||
</cac:InvoiceLine>
|
||||
|
||||
</Invoice>
|
||||
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
<span style="font-size:16pt">E.</span>Verstuur uw bericht via deze knop: </span>
|
||||
<input type="button" onclick="doSubmit()" value="Verstuur"> <span style="font-size:9pt;color:red"><b>Tip: Om een korrekte test met de API key te doen, log dan eerst uit Mareon via de knop 'Afmelden' in de header van het portaal (bent u nog ingelogd dan wordt APIkey in deze test niet meegenomen)</b></span>
|
||||
|
||||
Reference in New Issue
Block a user