Requests
XML UBL E-Invoicing
Under Consideration
An e-invoice has the same legal validity as a paper invoice: it is a receipt for the delivery of goods or provision of services. E-invoicing is an increasingly valuable tool and provides great advantages and benefits to users, such as a reduction in costs, the improvement of business management, of payments and collections and many others.
Features needed:
1. Automatically generate XML invoice each time an invoice is created
2. Generate XML invoice upon request
3. Store all XML invoices on server for later use for download
4. Bulk export of UBL invoices
5. Attach PDF document in UBL file
Under Settings > Billing/Payment > Invoice Customization there is a "Cache" option. You can choose JSON or JSON + PDF. This will cause Blesta to store a digital hard copy of the original invoice data + invoice PDF if desired. These can be downloaded for future use if necessary.
XML is an outdated format, which is why we went with JSON, but the JSON files could be converted to XML if desired, with some kind of utility (perhaps one exists already in a general sense, I'm not sure).
So, I think that covers most of your request. If XML UBL is a clearly defined format, and your goal is to convert and export these invoice cache files into that format then I think that would be the sum of this request. Details on the technical specifications of XML UBL and how these should be converted would be helpful to know and a link to those specifications would be great.
In Romania we're forced now to use E-factura (e-Invoicing), if an invoice is marked as paid it should be sended to our Govt, there can be an example what it should do: https://mfinante.gov.ro/web/efactura/informatii-tehnice
```
<?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:ccts="urn:un:unece:uncefact:documentation:2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2" xmlns:udt="urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-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#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.0</cbc:CustomizationID>
<cbc:ID>FAC 3</cbc:ID>
<cbc:IssueDate>2022-06-16</cbc:IssueDate>
<cbc:DueDate>2022-06-30</cbc:DueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>RON</cbc:DocumentCurrencyCode>
<cac:AccountingSupplierParty>
<cac:Party>
<cac:PartyIdentification>
<cbc:ID>34283300</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>FACTURIS ONLINE SRL</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>B-DUL IULIU MANIU, NR.6E, PARTER, CAMERA NR 3, SC.1, AP.3, SECTOR 6</cbc:StreetName>
<cbc:CityName>SECTOR 6</cbc:CityName>
<cbc:CountrySubentity>RO-B</cbc:CountrySubentity>
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>RO34283300</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>FACTURIS ONLINE SRL</cbc:RegistrationName>
<cbc:CompanyID>34283300</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cac:PartyIdentification>
<cbc:ID>19211548</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>MIDSOFT IT GROUP SRL</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>B-DUL IULIU MANIU, NR.6E, PARTER,CAMERA 1, SC.1, AP.3, SECTOR 6</cbc:StreetName>
<cbc:CityName>SECTOR 6</cbc:CityName>
<cbc:CountrySubentity>RO-B</cbc:CountrySubentity>
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>RO19211548</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>MIDSOFT IT GROUP SRL</cbc:RegistrationName>
<cbc:CompanyID>19211548</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:PaymentMeans>
<cbc:PaymentMeansCode>26</cbc:PaymentMeansCode>
<cbc:PaymentID>serie ticket vacanta: 123456789000</cbc:PaymentID>
</cac:PaymentMeans>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="RON">0.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="RON">2000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="RON">0.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>E</cbc:ID>
<cbc:TaxExemptionReasonCode>VATEX-EU-309</cbc:TaxExemptionReasonCode>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="RON">2000.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="RON">2000.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="RON">2000.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="RON">2000.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">1.000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">2000.00</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>bilet</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID>E</cbc:ID>
<cbc:Percent>0.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="RON">2000.00</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
```
Comments have been locked on this page!