Primer eFakture - Obična faktura

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
RAC,380,RSD,Broj fakture
DAT,2022-07-13,2022-07-20,2022-07-13,35
UPL,30,(mod97) 123456/2022,Tekući račun pravnog lica A
RUG,Broj ugovora
DOB,123456789,12345678,,1,Naziv pravnog lica A,Ulica,Grad pravnog lica A,Postanski broj
KUP,987654321,87654321,12345,1,Naziv pravnog lica B,Adresa pravnog lica B,Grad pravnog lica B,Postanski broj
SUB,2801.15,560.23,S,20,VAT,,
SUB,1825.28,182.53,S,10,VAT,,
SUB,1560,0,O,0,VAT,PDV-RS-11-1-4,
TOT,6186.43,6186.43,6929.19,0,0,6929.19
LIN,1,test proizvod 1,,S,20,VAT,5,MTR,560.23,0,0,0,2801.15
LIN,2,test proizvod 2,,S,10,VAT,4,KMT,456.32,0,0,0,1825.28
LIN,3,test proizvod 3,,O,0,VAT,1,H87,1560,0,0,0,1560

Poređenje obične fakture u našem formatu i UBL 2.1 XML formatu

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<?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:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:sbt="http://mfin.gov.rs/srbdt/srbdtext" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:mfin.gov.rs:srbdt:2021</cbc:CustomizationID>

RAC,380,RSD,Broj fakture
   <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
   <cbc:DocumentCurrencyCode>RSD</cbc:DocumentCurrencyCode>
   <cbc:ID>Broj fakture</cbc:ID>

DAT,2022-07-13,2022-07-20,2022-07-13,35
   <cbc:IssueDate>2022-07-13</cbc:IssueDate>
   <cbc:DueDate>2022-07-20</cbc:DueDate>
   <cac:InvoicePeriod>
      <cbc:DescriptionCode>35</cbc:DescriptionCode>
   </cac:InvoicePeriod>
   <cac:Delivery>
      <cbc:ActualDeliveryDate>2022-07-13</cbc:ActualDeliveryDate>
   </cac:Delivery>

UPL,30,(mod97) 123456/2022,Tekući račun pravnog lica A
   <cac:PaymentMeans>
      <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
      <cbc:PaymentID>(mod97) 123456/2022</cbc:PaymentID>
      <cac:PayeeFinancialAccount>
         <cbc:ID>Tekući račun pravnog lica A</cbc:ID>
      </cac:PayeeFinancialAccount>
   </cac:PaymentMeans>

RUG,Broj ugovora
   <cac:ContractDocumentReference>
      <cbc:ID>Broj ugovora</cbc:ID>
   </cac:ContractDocumentReference>

DOB,123456789,12345678,,1,Naziv pravnog lica A,Ulica,Grad pravnog lica A,Postanski broj
   <cac:AccountingSupplierParty>
      <cac:Party>
         <cbc:EndpointID schemeID="9948">123456789</cbc:EndpointID>
         <cac:PartyName>
            <cbc:Name>Naziv pravnog lica A</cbc:Name>
         </cac:PartyName>
         <cac:PostalAddress>
            <cbc:CityName>Grad pravnog lica A</cbc:CityName>
            <cac:Country>
               <cbc:IdentificationCode>RS</cbc:IdentificationCode>
            </cac:Country>
         </cac:PostalAddress>
         <cac:PartyTaxScheme>
            <cbc:CompanyID>RS123456789</cbc:CompanyID>
            <cac:TaxScheme>
               <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
         </cac:PartyTaxScheme>
         <cac:PartyLegalEntity>
            <cbc:RegistrationName>Naziv pravnog lica A</cbc:RegistrationName>
            <cbc:CompanyID>12345678</cbc:CompanyID>
         </cac:PartyLegalEntity>
         <cac:Contact>
            <cbc:ElectronicMail>e-mail adresa</cbc:ElectronicMail>
         </cac:Contact>
      </cac:Party>
   </cac:AccountingSupplierParty>

KUP,987654321,87654321,12345,1,Naziv pravnog lica B,Adresa pravnog lica B,Grad pravnog lica B,Postanski broj
   <cac:AccountingCustomerParty>
      <cac:Party>
         <cbc:EndpointID schemeID="9948">987654321</cbc:EndpointID>
         <cac:PartyIdentification>
            <cbc:ID>JBKJS:12345</cbc:ID>
         </cac:PartyIdentification>
         <cac:PartyName>
            <cbc:Name>Naziv pravnog lica B</cbc:Name>
         </cac:PartyName>
         <cac:PostalAddress>
            <cbc:StreetName>Adresa pravnog lica B</cbc:StreetName>
            <cbc:CityName>Grad pravnog lica B</cbc:CityName>
            <cac:Country>
               <cbc:IdentificationCode>RS</cbc:IdentificationCode>
            </cac:Country>
         </cac:PostalAddress>
         <cac:PartyTaxScheme>
            <cbc:CompanyID>RS987654321</cbc:CompanyID>
            <cac:TaxScheme>
               <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
         </cac:PartyTaxScheme>
         <cac:PartyLegalEntity>
            <cbc:RegistrationName>Naziv pravnog lica B</cbc:RegistrationName>
            <cbc:CompanyID>87654321</cbc:CompanyID>
         </cac:PartyLegalEntity>
         <cac:Contact>
            <cbc:ElectronicMail>e-mail adresa</cbc:ElectronicMail>
         </cac:Contact>
      </cac:Party>
   </cac:AccountingCustomerParty>


   <cac:TaxTotal>
      <cbc:TaxAmount currencyID="RSD">742.76</cbc:TaxAmount>

SUB,2801.15,560.23,S,20,VAT,,
      <cac:TaxSubtotal>
         <cbc:TaxableAmount currencyID="RSD">2801.15</cbc:TaxableAmount>
         <cbc:TaxAmount currencyID="RSD">560.23</cbc:TaxAmount>
         <cac:TaxCategory>
            <cbc:ID>S</cbc:ID>
            <cbc:Percent>20</cbc:Percent>
            <cac:TaxScheme>
               <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
         </cac:TaxCategory>
      </cac:TaxSubtotal>

SUB,1825.28,182.53,S,10,VAT,,
      <cac:TaxSubtotal>
         <cbc:TaxableAmount currencyID="RSD">1825.28</cbc:TaxableAmount>
         <cbc:TaxAmount currencyID="RSD">182.53</cbc:TaxAmount>
         <cac:TaxCategory>
            <cbc:ID>S</cbc:ID>
            <cbc:Percent>10</cbc:Percent>
            <cac:TaxScheme>
               <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
         </cac:TaxCategory>
      </cac:TaxSubtotal>

SUB,1560,0,O,0,VAT,PDV-RS-11-1-4,
      <cac:TaxSubtotal>
         <cbc:TaxableAmount currencyID="RSD">1560</cbc:TaxableAmount>
         <cbc:TaxAmount currencyID="RSD">0</cbc:TaxAmount>
         <cac:TaxCategory>
            <cbc:ID>O</cbc:ID>
            <cbc:Percent>0</cbc:Percent>
            <cbc:TaxExemptionReasonCode>PDV-RS-11-1-4</cbc:TaxExemptionReasonCode>
            <cac:TaxScheme>
               <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
         </cac:TaxCategory>
      </cac:TaxSubtotal>

   </cac:TaxTotal>


TOT,6186.43,6186.43,6929.19,0,0,6929.19
   <cac:LegalMonetaryTotal>
      <cbc:LineExtensionAmount currencyID="RSD">6186.43</cbc:LineExtensionAmount>
      <cbc:TaxExclusiveAmount currencyID="RSD">6186.43</cbc:TaxExclusiveAmount>
      <cbc:TaxInclusiveAmount currencyID="RSD">6929.19</cbc:TaxInclusiveAmount>
      <cbc:AllowanceTotalAmount currencyID="RSD">0</cbc:AllowanceTotalAmount>
      <cbc:PrepaidAmount currencyID="RSD">0</cbc:PrepaidAmount>
      <cbc:PayableAmount currencyID="RSD">6929.19</cbc:PayableAmount>
   </cac:LegalMonetaryTotal>


LIN,1,test proizvod 1,,S,20,VAT,5,MTR,560.23,0,0,0,2801.15
   <cac:InvoiceLine>
      <cbc:ID>1</cbc:ID>
      <cbc:InvoicedQuantity unitCode="MTR">5</cbc:InvoicedQuantity>
      <cbc:LineExtensionAmount currencyID="RSD">2801.15</cbc:LineExtensionAmount>
      <cac:Item>
         <cbc:Name>test proizvod 1</cbc:Name>
         <cac:SellersItemIdentification>
            <cbc:ID>1</cbc:ID>
         </cac:SellersItemIdentification>
         <cac:ClassifiedTaxCategory>
            <cbc:ID>S</cbc:ID>
            <cbc:Percent>20</cbc:Percent>
            <cac:TaxScheme>
               <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
         </cac:ClassifiedTaxCategory>
      </cac:Item>
      <cac:Price>
         <cbc:PriceAmount currencyID="RSD">560.23</cbc:PriceAmount>
      </cac:Price>
   </cac:InvoiceLine>


LIN,2,test proizvod 2,,S,10,VAT,4,KMT,456.32,0,0,0,1825.28
   <cac:InvoiceLine>
      <cbc:ID>2</cbc:ID>
      <cbc:InvoicedQuantity unitCode="KMT">4</cbc:InvoicedQuantity>
      <cbc:LineExtensionAmount currencyID="RSD">1825.28</cbc:LineExtensionAmount>
      <cac:Item>
         <cbc:Name>test proizvod 2</cbc:Name>
         <cac:SellersItemIdentification>
            <cbc:ID>2</cbc:ID>
         </cac:SellersItemIdentification>
         <cac:ClassifiedTaxCategory>
            <cbc:ID>S</cbc:ID>
            <cbc:Percent>10</cbc:Percent>
            <cac:TaxScheme>
               <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
         </cac:ClassifiedTaxCategory>
      </cac:Item>
      <cac:Price>
         <cbc:PriceAmount currencyID="RSD">456.32</cbc:PriceAmount>
      </cac:Price>
   </cac:InvoiceLine>


LIN,3,test proizvod 3,,O,0,VAT,1,H87,1560,0,0,0,1560
   <cac:InvoiceLine>
      <cbc:ID>3</cbc:ID>
      <cbc:InvoicedQuantity unitCode="H87">1</cbc:InvoicedQuantity>
      <cbc:LineExtensionAmount currencyID="RSD">1560</cbc:LineExtensionAmount>
      <cac:Item>
         <cbc:Name>test proizvod 3</cbc:Name>
         <cac:SellersItemIdentification>
            <cbc:ID>3</cbc:ID>
         </cac:SellersItemIdentification>
         <cac:ClassifiedTaxCategory>
            <cbc:ID>O</cbc:ID>
            <cbc:Percent>0</cbc:Percent>
            <cac:TaxScheme>
               <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
         </cac:ClassifiedTaxCategory>
      </cac:Item>
      <cac:Price>
         <cbc:PriceAmount currencyID="RSD">1560</cbc:PriceAmount>
      </cac:Price>
   </cac:InvoiceLine>


</Invoice>