OIOXML Invoice Fona Page 1 of 9
Indhold Denne Guide Line beskriver kravene til fakturaer til i OIOXML format. Formatet anvendes til fakturering og kreditering, men kan ikke anvendes til prisreguleringer. Formatet er ikke gengivet i detaljer. Kun de OIOXML felter, der anvendes af er beskrevet. Begrænsninger Formatet kan anvendes ved kommunikation via andre danske VANS udbydere, man ikke via udenlandske, f.eks GXS, eller via X400, se Kommunikationsmuligheder (evt. Link ) Om OIOXML OIOXML er et format, der anvendes til fakturering af kunder indenfor den offentlige sektor I Danmark. Formatet er beskrevet i Bekendtgørelse nr. 1075 af 11. november 2004. Formatbeskrivelsen kan findes via følgende link til IT- og Tele-styrelsen: www.itst.dk/arkitektur-og-standarder/standardisering/datastandardisering/e-handel/oioxml-elektronisk-regning Her findes også andre vigtige oplysninger om OIOXML, bl.a. link til Online Validator. Fakturatyper Der findes to fakturatyper: pie : Almindelig varefaktura pcm : testpie : testpcm : Almindelig kreditnota Almindelig varefaktura, test Almindelig kreditnota, test Page 2 of 9
Kontroller Følgende skal være opfyldt for fakturatype Pie og Pcm : På linieniveau (detailrecord) skal Fakturalinietotal = Faktureret Antal * Stk.pris +/- Summen af FradragTillæg på linieniveau På fakturatotalniveau (trailerrecord) skal: Fakturatotal = Sum af lintot +/- Summen af Fradrag/Tillæg på fakturaniveau + Moms Headerniveau: OIOXML Felt Invoice.com:SellerParty.com:ID Udfyldes med Max Længde Leverandørens lokationsnummer (GLN) 13 Invoice.com:BuyerParty.com:ID schemeid="ean" 5790000259335 13 Invoice.com:DestinationParty.com:ID Butik 13 Invoice.com:ID Fakturanr 10 Invoice.com:IssueDate (bindestreger fjernes) Fakturadato 8 Invoice.com:PaymentMeans.com:PaymentDueDate Forfaldsdato 8 Invoice.com:ReferencedOrder.com:SellersOrderID Følgeseddelsnummer 10 Invoice.com:ReferencedOrder.com:BuyersOrderID Ordrenummer 10 Invoice.com:TaxTotal.com:CategoryTotal.com:RatepercentNumeric MomsSats 6 Page 3 of 9
Detail record: OIOXML felt Udfyldes med Max Længde Invoice.com:InvoiceLine.com:Item.com:ID Varens EANNR (stregkode) 14 Invoice.com:InvoiceLine.com:InvoicedQuantity (absolut værdi) Faktureret antal 6 Invoice.com:InvoiceLine.com:BasePrice.com:PriceAmount stk.pris, max. 2 decimaler 9 Invoice.com:InvoiceLine.com:LineExtentionAmount (absolut værdi) Invoice.com:InvoiceLine.com:AllowanceCharge.com:AllowanceChargeAmount hvor com:id Invoice.com:InvoiceLine.com:Item.com:SellersItemIdentification.com:ID Fakturalinietotal, max. 2 decimaler 11 Fradrag/tillæg på linieniveau, max. 2 decimaler 9 Leverandørenskatalogvarenummer 13 Invoice.com:InvoiceLine.com:Item.com:Description Varetekst 20 Trailer record: OIOXML felt Invoice.com:LegalTotals.com:LineExtensionTotalAmount (absolut værdi) Sum af alle Invoice.com:AllowanceCharge.com:AllowanceChargeAmount Udfyldes med Max længde Sum af linie tot, max. 2 decimaler 11 Fradrag/tillæg, max. 2 decimaler 11 Invoice.com:TaxTotal.com:TaxAmounts.com:TaxAmount (absolut værdi) Moms, max. 2 decimaler 11 Invoice.com:LegalTotals.com:ToBePaidTotalAmount (absolut værdi) Fakturatotal, max. 2 decimaler 11 Page 4 of 9
Eksempel på en forsendelse med en faktura og en kreditnota: <?xml version="1.0" encoding="utf-8"?> <Invoice xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xsi:schemalocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/http://rep.oio.dk/ubl/xml/schemas/0p71/pie/piest rict.xsd" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/"> <com:id>717777</com:id> <com:issuedate>2009-04-21</com:issuedate> <com:typecode>pie</com:typecode> <main:invoicecurrencycode>dkk</main:invoicecurrencycode> <com:buyersreferenceid schemeid="ean">5790099999999</com:buyersreferenceid> <com:referencedorder> <com:buyersorderid>2222222</com:buyersorderid> <com:sellersorderid>333333</com:sellersorderid> <com:issuedate>2009-04-21</com:issuedate> </com:referencedorder> <com:buyerparty> <com:id schemeid="ean">5790000259335</com:id> <com:accountcode /> <com:partyname> <com:name>f. Group A/S</com:Name> </com:partyname> <com:address> <com:id>fakturering</com:id> <com:street>øster Alle 56</com:Street> <com:additionalstreet /> <com:housenumber></com:housenumber> <com:cityname>københavn Ø</com:CityName> <com:postalzone>2100</com:postalzone> <com:country> <com:code>dk</com:code> </com:country> </com:address> <com:buyercontact> <com:id /> </com:buyercontact> </com:buyerparty> <com:destinationparty> <com:id schemeid="ean">5790000858286</com:id> Page 5 of 9
<com:partyname> <com:name>fona Butik 161</com:Name> </com:partyname> <com:contact> <com:id /> </com:contact> <com:address> <com:id>levering</com:id> <com:street /> <com:additionalstreet>nytorv 9</com:AdditionalStreet> <com:housenumber></com:housenumber> <com:cityname>ã lborg</com:cityname> <com:postalzone>9000</com:postalzone> <com:country> <com:code>dk</com:code> </com:country> </com:address> </com:destinationparty> <com:sellerparty> <com:id schemeid="cvr">99999999</com:id> <com:partyname> <com:name>leverandør Danmark A/S</com:Name> </com:partyname> <com:address> <com:id>betaling</com:id> <com:street>nygade</com:street> <com:additionalstreet>p.o.box 999</com:AdditionalStreet> <com:housenumber>99</com:housenumber> <com:cityname>by</com:cityname> <com:postalzone>9999</com:postalzone> <com:country> <com:code>dk</com:code> </com:country> </com:address> <com:partytaxscheme> <com:companytaxid schemeid="cvr">99999999</com:companytaxid> </com:partytaxscheme> <com:ordercontact> <com:id>hans Hansen</com:ID> <com:phone>99999999</com:phone> Page 6 of 9
</com:ordercontact> </com:sellerparty> <com:paymentmeans> <com:typecodeid>null</com:typecodeid> <com:paymentduedate>2009-06-14</com:paymentduedate> <com:paymentchannelcode>kontooverfã RSEL</com:PaymentChannelCode> <com:payeefinancialaccount> <com:id>0119313147</com:id> <com:typecode>bank</com:typecode> <com:fibranch> <com:id>2217</com:id> <com:financialinstitution> <com:id>xxxxxxxx</com:id> <com:name>bank </com:name> </com:financialinstitution> </com:fibranch> </com:payeefinancialaccount> <com:paymentadvice> <com:accounttoaccount> <com:payeenote>faktura NR. 99999</com:PayeeNote> </com:accounttoaccount> </com:paymentadvice> </com:paymentmeans> <com:allowancecharge> <com:id>fragt</com:id> <com:chargeindicator>true</com:chargeindicator> <com:allowancechargeamount currencyid="dkk">0.00</com:allowancechargeamount> </com:allowancecharge> <com:taxtotal> <com:taxtypecode>vat</com:taxtypecode> <com:taxamounts> <com:taxableamount currencyid="dkk">550.19</com:taxableamount> <com:taxamount currencyid="dkk">137.55</com:taxamount> </com:taxamounts> <com:categorytotal> <com:ratecategorycodeid>vat</com:ratecategorycodeid> <com:ratepercentnumeric>25</com:ratepercentnumeric> <com:taxamounts> <com:taxableamount currencyid="dkk">550.19</com:taxableamount> <com:taxamount currencyid="dkk">137.55</com:taxamount> Page 7 of 9
</com:taxamounts> </com:categorytotal> </com:taxtotal> <com:taxtotal> <com:taxtypecode>zero-rated</com:taxtypecode> <com:taxamounts> <com:taxableamount currencyid="dkk">0.00</com:taxableamount> <com:taxamount currencyid="dkk">0.00</com:taxamount> </com:taxamounts> <com:categorytotal> <com:ratecategorycodeid>zero-rated</com:ratecategorycodeid> <com:ratepercentnumeric>00</com:ratepercentnumeric> <com:taxamounts> <com:taxableamount currencyid="dkk">0.00</com:taxableamount> <com:taxamount currencyid="dkk">0.00</com:taxamount> </com:taxamounts> </com:categorytotal> </com:taxtotal> <com:legaltotals> <com:lineextensiontotalamount currencyid="dkk">550.19</com:lineextensiontotalamount> <com:tobepaidtotalamount currencyid="dkk">687.74</com:tobepaidtotalamount> </com:legaltotals> <com:invoiceline> <com:id>1</com:id> <com:invoicedquantity unitcode="stk" unitcodelistagencyid="n/a">1.00</com:invoicedquantity> <com:lineextensionamount currencyid="dkk">550.19</com:lineextensionamount> <com:allowancecharge> <com:id>rabat</com:id> <com:chargeindicator>true</com:chargeindicator> <com:allowancechargeamount currencyid="dkk">61.13</com:allowancechargeamount> </com:allowancecharge> <com:item> <com:id>757575757575</com:id> <com:description>artikelnavn</com:description> <com:sellersitemidentification><com:idschemeid= n/a >454543</com:ID> </com:sellersitemidentification> </com:item> <com:baseprice> <com:priceamount currencyid="dkk">611.32</com:priceamount> </com:baseprice> Page 8 of 9
</com:invoiceline> </Invoice> Page 9 of 9