Van Peppol Bis V3 naar e-factuur (verkoopfactuur)

Je kunt in Profit facturen aan je verkooprelaties verstrekken als e-factuur. Dit houdt in dat de verkooprelatie/debiteur twee bestanden ontvangt: een pdf-bestand en een UBL-bestand volgens het Peppol Bis V3 formaat. De verkooprelatie/debiteur kan de e-verkoopfactuur rechtstreeks inlezen en verwerken als inkoopfactuur in zijn financiële administratie.

In de onderstaande tabellen staat per UBL-element van de e-factuur (verkoopfactuur) welke informatie en velden het element bevat, waar deze informatie vandaan komt en hoe Profit de UBL-factuur opbouwt.

Inhoud

Begin, algemene factuurgegevens, (overige) referenties

Path/UBL-element

Voorwaarde

Bron

Waarde

Kopgegevens

/Invoice

 

 

 

/Invoice/cbc:CustomizationID

 

Vaste waarde

urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0

/Invoice/cbc:ProfileID

 

Vaste waarde

urn:fdc:peppol.eu:2017:poacc:billing:01:1.0

/Invoice/cbc:ID

 

Waarde uit factuur

Factuurnummer

/Invoice/cbc:IssueDate

 

Waarde uit factuur

Factuurdatum

/Invoice/cbc:DueDate

 

Waarde uit factuur (als aanwezig)

Vervaldatum

/Invoice/cbc:InvoiceTypeCode

 

Als functie op bedrag (positief / negatief)

BV3 kent geen 384. Dan moet het geen InvoiceTypeCode zijn maar CreditNoteTypeCode met code 381. Let ook op root-element, regel 6.

/Invoice/cbc:Note

 

 

 

/Invoice/cbc:Note

 

Waarde uit factuur (als aanwezig)

Opmerking

/Invoice/cbc:DocumentCurrencyCode

 

Waarde uit factuur

Valuta

/Invoice/cbc:AccountingCost

SETU

Als verzamelmethode is op splitsen kostenplaats en er maar 1 kostenplaats voorkomt.

Kostenplaats

Periode waarop de factuur betrekking heeft
/Invoice/cac:InvoicePeriod

 

 

 

/Invoice/cac:InvoicePeriod/cbc:StartDate

 

Waarde uit factuur (als aanwezig)

Begindatum

/invoice/cac:InvoicePeriod/cbc:EndDate

 

Waarde uit factuur (als aanwezig)

Einddatum

Verwijzing naar de order

/Invoice/cac:OrderReference

 

 

 

/Invoice/cac:OrderReference/cbc:ID

SETU

 

Referentie opdrachtgever

/Invoice/cac:OrderReference/cbc:ID

Geen SETU en NL

Als AfasFbCustomerReference = leeg: AFasFbSalesInvoice.AfasFbSourceOrder
Anders: AfasFbSalesInvoice.AfasFbCustomerReference

Indien leeg: Bijbehorende order
Indien niet leeg: Opdrachtnummer/referentie

/Invoice/cac:OrderReference/cbc:ID

Geen SETU en BE

Als AfasFbCustomerReference = leeg dan AfasFbSalesInvoice.AfasPtInvoiceId

Indien leeg: Factuurnummer
Indien niet leeg: Opdrachtnummer/referentie

Verwijzing naar eerdere facturen / creditnota's

/Invoice/cac:BillingReference

 

 

 

/Invoice/cac:BillingReference/cac:InvoiceDocumentReference

 

 

 

/Invoice/cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID

 

Als het een creditfactuur betreft (factuur crediteren)

Gecrediteerde factuur

Klik hier voor meer informatie over de opbouw van het begin van de UBL (verwijzing xml en namespaces).

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel Algemene factuurgegevens.

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel (overige) Referenties.

Bijlagen

Path/UBL-element

Bron

Waarde

Verwijzing naar aanvullende documenten (bijlages)

/Invoice/cac:AdditionalDocumentReference

 

 

/Invoice/cac:AdditionalDocumentReference/cbc:ID

Bij de aanwezigheid van een pdf

Naam pdf (naam VKF)

/Invoice/cac:AdditionalDocumentReference/cbc:ID

 

 

/Invoice/cac:AdditionalDocumentReference/cbc:DocumentTypeCode

 

 

/Invoice/cac:AdditionalDocumentReference/cac:Attachment

 

 

/Invoice/cac:AdditionalDocumentReference/cac:Attachment/cbc:EmbeddedDocumentBinaryObject

Alleen bij verzenden naar eVerbinding. Bij samenvoegen bijlage en factuur beide.

Base64String van de bijlage

Verwijzing naar project

Path/UBL-element

Voorwaarde

Bron

Waarde

Projectgegevens

/Invoice/cac:ProjectReference

 

 

 

/Invoice/cac:ProjectReference/cbc:ID

SETU

Declaraties zijn niet gekoppeld aan verschillende projecten

Indien de referentie gelijk is op alle regels en deze niet leeg is: Referentie opdrachtgever.

Anders: Klantovereenkomst

/Invoice/cac:ProjectReference/cbc:ID

geen SETU

Als het geen SETU betreft en het ProjectID is niet leeg.

Projectcode

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel Verwijzing naar project (ProjectReference).

Afzender factuur

Path/UBL-element

Voorwaarde

Bron

Waarde

Verzendende partij (onze klant)

/Invoice/cac:AccountingSupplierParty

 

 

 

/Invoice/cac:AccountingSupplierParty/cac:Party

 

 

 

/Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID

NL

Wanneer het een Nederlandse administratie betreft en er is een KvK-nummer aanwezig.

Als AfasKnUnitPar.AfasKnBusinessIdentification is leeg: AfasKnBasiccontact.AfasKnChOfCommNr - KvK organisatie
Anders AfasKnUnitPar.AfasKnBusinessIdentification - KvK administratie
Anders unknown

Vertaald:
Als KvK nummer op de administratie leeg is, dan KvK nummer op de gekoppelde organisatie, anders Unknown.

/Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID

BE

Wanneer het een Belgische administratie betreft en er is een ondernemingsnummer of btw-nummer aanwezig.

Als AfasKnUnitPar.AfasKnBusinessIdentification is leeg: AfasKnBasiccontact.AfasKnChOfCommNr - KvK
Anders AfasKnUnitPar.AfasKnBusinessIdentification - Btw
Als btw is leeg dan AFasFiUnitPar.AfasFiTaxNumber niet leeg is: AfasFiTaxNumber

/Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID/@schemeID

Voorwaarde

 

Code van de verzender (0106, 0190 etc).

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyName

 

 

 

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name

 

Waarde uit Profit

Naam

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress

 

 

 

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:StreetName

 

Voorwaarde

Als postbus aanstaat dan postbus plus huisnummer, anders straat plus huisnummer

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName

 

Waarde uit Profit

Woonplaats

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PostalZone

 

Waarde uit Profit

Postcode

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country

 

 

 

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode

 

Waarde uit Profit

ISCode / landcode

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme

 

 

 

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID

 

Waarde uit Profit

Btw-nummer

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID

 

 

 

/invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme

 

 

 

/invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:ID

 

Vaste waarde

VAT

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity

 

 

 

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName

 

Waarde uit Profit

Naam

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID

NL

Voorwaarde

Dit hoeft niet het adres te zijn waarmee jij bent geregistreerd bij Peppol. Doe dit maar:

ALS nieuwe veld OIN is gevuld, dan deze. Anders KvK, anders FOUT.

Voor eConnect doe maar hetzelfde

Als Peppol gevuld is, dan gebruik je dit.

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID

BE

Voorwaarde

Ondernemingsnummer, anders terugvallen op btw-nummer. Anders Unknown

Als Peppol gevuld is, dan gebruik je dit.

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID/@schemeID

 

Voorwaarde

Code van de verzender (0106, 0190 etc).

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:Telephone

 

Voorwaarde

Als Telefoonnummer niet leeg is

/Invoice/cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:ElectronicMail

 

Voorwaarde

Als E-mail niet leeg is

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel Afzender factuur (Accounting SupplierParty).

Ontvanger factuur

Path/UBL-element

Voorwaarde

Bron

Waarde

Ontvangende partij (klant van onze klant)

/Invoice/cac:AccountingCustomerParty

 

 

 

/Invoice/cac:AccountingCustomerParty/cac:Party

 

 

 

/Invoice/cac:AccountingCustomerParty/cac:Party/cbc:EndpointID

 

Voorwaarde

Als op de debiteur het Peppol adres gevuld is EN AfasKnIsPeppolActive = JA dan Peppol adrestype.
We kijken dus niet naar Afwijkend OIN nummer op project.

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID

 

Voorwaarde

Als 'Nummer debiteur meesturen in UBL' aan staat in de Financieel basis instellingen, dan debiteurnummer.

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:StreetName

 

Voorwaarde

Als postbus aanstaat dan postbus plus huisnummer, anders straat plus huisnummer

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName

 

Waarde uit Profit

Woonplaats

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:PostalZone

 

Waarde uit Profit

Postcode

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode

 

Waarde uit Profit

ISCode / landcode

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID

 

Niet gebruikt

Vullen met btw-nummer van de debiteur (als gevuld)

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:ID

 

 

Vullen met VAT

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName

Veld uit Profit

AfasKnSalRelation.AfasKnDebtorName

 

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID

BE

 

Als Btw-identificatienummer op verkooprelatie is niet leeg: SchemeID=0087 value=AfasKnSalRelation.AfasKnVatAccountId
Als Btw-identificatienummer op verkooprelatie is leeg, maar ondernemersnummer is gevuld op Organisatie/persoon: SchemeID=0208 value=AfasKnBasicContact.AfasKnChOfCommNr
Als bovenstaande is niet doorgegaan: SchemeID=0087 value="Unknown"

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID

NL

 

Als Projectnummer is gevult, dan gaan we kijken of we OIN kunnen vinden op project, anders altijd van de verkooprelatie
Als OIN is gevuld op project: SchemeID=0190 value=AfasPtProject.AfasPtOINumber
Als OIN is niet gevult op project, maar wel bij verkooprelatie: SchemeID=0190 value=AfasKnSalRelation.AfasKnOINumber
Als OIN is leeg, maar KVK is gevuld op Organisatie/persoon: SchemeId=0106 value=AfasKnBasicContact.AfasKnChOfCommNr
Als bovenstaande is niet doorgegaan: SchemeID=0106 value="Unknown"

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:Name

 

Niet gebruikt

Naam contact

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:Telephone

 

 

AfasKnBasicContact.AfasKnTelNr - Telnr. Organisatie

/Invoice/cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:ElectronicMail

 

Voorwaarde

Dit gaat alleen op als de te factureren verkooprelatie hetzelfde is als de verkooprelatie
Als bij Verkooprelatie, voorkeurcontact is gevuld en bij het contact zelf de email is gevult: AfasKnContactData.AfasKnEmail
Als bij Verkooprelatie, voorkeurcontact is gevuld, maar bij het contact is geen email aanwezig: AfasKnBasicContact.AfasKnEmail
Als bovenstaande niet doorgaat: AfasKnBasicContact.AfasKnEmail

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel Ontvanger factuur (Accounting CustomerParty).

Levering

Path/UBL-element

Voorwaarde

Bron

Waarde

Gegevens over de levering van de goederen of diensten

/Invoice/cac:Delivery

 

 

 

/Invoice/cac:Delivery/cbc:ActualDeliveryDate

 

Voorwaarde

Als op de factuur, het veld 'Datum levering (toegezegd)' niet leeg is, dan AfasFbSalesInvoice.AfasFbDateDelivProm - Datum toegezegd,

anders leeg.

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel Afleveradres (Delivery).

Betalingsmethode en -conditie

Path/UBL-element

Bron

Waarde

Informatie over de betaalmethode

/Invoice/cac:PaymentMeans

 

 

/Invoice/cac:PaymentMeans/cbc:PaymentMeansCode

Voorwaarde

Als de betaalwijze op 00 staat en incasseren is True, geven we 49 door voor zowel de normale rekening als de G-rekening. Als de betaalwijze op 00 staat en incasseren is False, geven we 58 door voor zowel de normale rekening als de G-rekening.
Anders: 57

/Invoice/cac:PaymentMeans/cbc:PaymentID

Waarde uit Profit

Betalingskenmerk

/Invoice/cac:PaymentMeans/cac:CardAccount

 

 

/Invoice/cac:PaymentMeans/cac:CardAccount/cbc:NetworkID

 

 

/Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount

 

 

/Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID

Voorwaarde

Als het IBAN-nummer leeg is op de bankrekening, dan gebruik je de bankrekening uit de administratie.
Anders: IBAN-nummer uit de administratie Verkooprelatieprofiel

/Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch

 

 

/Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID

Voorwaarde

Als PaymentMeansCode niet 58 of 59 is, dan AfasKnBankAccountNr.AfasKnBicCode
Anders: leeg

/Invoice/cac:PaymentMeans/cac:PaymentMandate/cbc:ID

Niet gebruikt

Als geen incassomachting gevonden, dan N/A.
Als incassomachtiging is vervallen, dan N/A.

Als de factuur op incasseren staat, maar er geen actieve incassomachtiging gevonden is, dan verschijnt de foutmelding: 'Er is geen incassomachtiging bij deze debiteur aanwezig. De factuur mag dus niet op incasseren staan.'

/Invoice/cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount

 

 

/Invoice/cac:PaymentMeans/cac:PaymentTerms - informatie over de betaalvoorwaarde

 

 

/Invoice/cac:PaymentMeans/cac:PaymentTerms/cbc:Note

Voorwaarde

Omschrijving betalingsvoorwaarde

Dit is alleen zichtbaar als er geen bedrag betaalt moet worden op een G-rekening.

Zie ook:

Factuurkorting

Path/UBL-element

Bron

Waarde

Over kortingen en toeslagen op factuurniveau

/Invoice/cac:AllowanceCharge

 

 

/Invoice/cac:AllowanceCharge/cbc:ChargeIndicator

Voorwaarde

Positief bedrag: False

Negatief bedrag: True

/Invoice/cac:AllowanceCharge/cbc:AllowanceChargeReason

Voorwaarde

Positief bedrag: Factuurkorting

Negatief bedrag: Factuurtoeslag

/Invoice/cac:AllowanceCharge/cbc:AllowanceChargeReason

 

 

/Invoice/cac:AllowanceCharge/cbc:MultiplierFactorNumeric

Veld uit Profit

Factuurkorting (%)

/Invoice/cac:AllowanceCharge/cbc:Amount

Berekening

currencyID=AfasFbSalesInvoice.AfasFbCurrencyId value=TaxableAmountEx * AfasFbSalesInvoice.AfasFbDiscountPct / 100

/Invoice/cac:AllowanceCharge/cbc:Amount/@currencyID

Veld uit Profit

Valuta

/Invoice/cac:AllowanceCharge/cbc:BaseAmount

Veld uit Profit

Bedrag excl. Btw

/Invoice/cac:AllowanceCharge/cbc:BaseAmount/@currencyID

Veld uit Profit

Valuta

/Invoice/cac:AllowanceCharge/cac:TaxCategory

 

 

/Invoice/cac:AllowanceCharge/cac:TaxCategory/cbc:ID

Voorwaarde

Bevat één van de volgende waarden:

  • AE: Verkopen binnen EU / Verlegd naar
  • G: Verkopen buiten EU
  • Z: Vrijgesteld
  • S of Z (bij nulverkoop): Verkopen standaard
  • E: Intercompany

/Invoice/cac:AllowanceCharge/cac:TaxCategory/cbc:ID

 

 

/Invoice/cac:AllowanceCharge/cac:TaxCategory/cbc:Percent

Veld uit Profit

Percentage van de btw

/Invoice/cac:AllowanceCharge/cac:TaxCategory/cbc:Percent

 

 

/Invoice/cac:AllowanceCharge/cac:TaxCategory/cac:TaxScheme

 

 

/Invoice/cac:AllowanceCharge/cac:TaxCategory/cac:TaxScheme/cbc:ID

Vaste waarde

VAT

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel BTW-totalen (TaxTotal).

BTW-totalen

Path/UBL-element

Bron

Waarde

Totale belasting

/Invoice/cac:TaxTotal

 

 

/Invoice/cac:TaxTotal/cbc:TaxAmount

Veld uit Profit

Veld AfasFbVatAmount

/Invoice/cac:TaxTotal/cbc:TaxAmount/@currencyID

Veld uit Profit

Valuta

/Invoice/cac:TaxTotal/cac:TaxSubtotal

 

 

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount

Veld uit Profit

currencyID=AfasFbSalesInvoice.AfasFbCurrencyId value=Totale bedrag waarover het specifieke BTW percentage is gegaan

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount/@currencyID

Veld uit Profit

Valuta

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount

Veld uit Profit

currencyID=AfasFbSalesInvoice.AfasFbCurrencyId value=Totale bedrag aan BTW

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount/@currencyID

 

 

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory

 

 

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID

Voorwaarde

Bevat één van de volgende waarden:

  • AE: Verkopen binnen EU / Verlegd naar
  • G: Verkopen buiten EU
  • Z: Vrijgesteld
  • S of Z (bij nulverkoop): Verkopen standaard
  • E: Intercompany

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:Percent

Veld uit Profit

Percentage van de btw

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:TaxExemptionReasonCode

Veld uit Profit

De omschrijving van de btwcode.

Is deze leeg, dan Vrijgesteld van btw.

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:TaxExemptionReason

Voorwaarde

Als TaxCategory AE of E of G is de omschrijving van de btwcode of als die leeg is Vrijgesteld van BTW.

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme

 

 

/Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID

Vaste waarde

VAT

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel BTW-totalen (TaxTotal).

Factuurtotalen

Path/UBL-element

Bron

Waarde

Wettelijk totaalbedrag van de factuur

/Invoice/cac:LegalMonetaryTotal

 

 

/Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount

Waarde uit Profit

currencyID=AfasFbSalesInvoice.AfasFbCurrencyId value=Totaal bedrag van alle regels exclusief BTW

/Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount/@currencyID

Waarde uit Profit

Valuta

/Invoice/cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount

Waarde uit Profit

Veld 'AfasFbAmtTotalEx'

/Invoice/cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount/@currencyID

Waarde uit Profit

Valuta

/Invoice/cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount

Waarde uit Profit

Veld 'AfasFbAmtInvoice'

/Invoice/cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount/@currencyID

Waarde uit Profit

Valuta

/Invoice/cac:LegalMonetaryTotal/cbc:AllowanceTotalAmount

Waarde uit Profit

Veld 'AfasFbAmtInvDiscount'

/Invoice/cac:LegalMonetaryTotal/cbc:AllowanceTotalAmount/@currencyID

Waarde uit Profit

Valuta

/Invoice/cac:LegalMonetaryTotal/cbc:ChargeTotalAmount

Waarde uit Profit

AfasFbAmtInvDiscount

/Invoice/cac:LegalMonetaryTotal/cbc:ChargeTotalAmount/@currencyID

Waarde uit Profit

Valuta

/Invoice/cac:LegalMonetaryTotal/cbc:PrepaidAmount

Waarde uit Profit

currencyID=AfasFbSalesInvoice.AfasFbCurrencyId value=Som van alle vooruitbetaalde bedragen

/Invoice/cac:LegalMonetaryTotal/cbc:PrepaidAmount/@currencyID

Waarde uit Profit

Valuta

/Invoice/cac:LegalMonetaryTotal/cbc:PayableRoundingAmount

Waarde uit Profit

currencyID=AfasFbSalesInvoice.AfasFbCurrencyId value=Bedrag om de afrondingsverschillen weer recht te trekken

/Invoice/cac:LegalMonetaryTotal/cbc:PayableRoundingAmount/@currencyID

Waarde uit Profit

Valuta

/Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount

Waarde uit Profit

currencyID=AfasFbSalesInvoice.AfasFbCurrencyId value=Openstaande bedrag om te betalen,
= Invoice total amount with VAT (BT-112) - Paid amount (BT-113) + Rounding amount (BT-114)

/Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount/@currencyID

Waarde uit Profit

Valuta

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel Factuurtotalen (LegalMonetaryTotal).

Factuurregels

Er kunnen zowel verdichte als onverdichte factuurregels in de UBL staan.

Path/UBL-element

Voorwaarde

Bron

Waarde

Details van de factuurregels

/Invoice/cac:InvoiceLine

 

 

 

/Invoice/cac:InvoiceLine/cbc:ID

 

Waarde uit Profit

Sequence nummer van de regel

/Invoice/cac:InvoiceLine/cbc:Note

 

Voorwaarde

Alleen als veld 'Opmerking extern' gevuld is op de factuurregel

/Invoice/cac:InvoiceLine/cbc:InvoicedQuantity

 

Voorwaarde

Dit getal is positief als de prijs positief is, anders wordt het aantal negatief

/Invoice/cac:InvoiceLine/cbc:InvoicedQuantity/@unitCode

 

 

Als veld 'Eenheid code (UBL)' (dit vul je op de eenheid) gevuld is, we halen dus de eenheid van het item op, dan vullen we die in bij 'unitcode', anders wordt de waarde altijd 'EA'
unitCode={eenheid UBL} value=AfasFbSalesInvoiceLines.AfasFbQuantityInvoice

/Invoice/cac:InvoiceLine/cbc:LineExtensionAmount

 

 

Regelbedrag exclusief

/Invoice/cac:InvoiceLine/cbc:LineExtensionAmount/@currencyID

 

Waarde uit Profit

Valuta

/Invoice/cac:InvoiceLine/cbc:AccountingCost

SETU

Voorwaarde

Als verzamelmethode van factuur is ingesteld als Splitsen per kostenplaats, dan Kostenplaats

/Invoice/cac:InvoiceLine/cac:InvoicePeriod/cbc:StartDate

 

Voorwaarde

Als AfasFbSalesInvoiceLines.AfasFbDateStart(Startdatum) en AfasFbSalesInvoiceLines.AfasFbDateEnd(einddatum) niet leeg zijn, dan kijken we of de startdatum voor de einddatum ligt, zoniet, dan wordt de einddatum de startdatum(Dit doen we voor concepten)
Als 1 van de 2 leeg is, dan AfasFbSalesInvoiceLines.AfasFbOrderDate

/Invoice/cac:InvoiceLine/cac:InvoicePeriod/cbc:EndDate

 

Voorwaarde

Als AfasFbSalesInvoiceLines.AfasFbDateStart(Startdatum) en AfasFbSalesInvoiceLines.AfasFbDateEnd niet leeg zijn, dan kijken we of de einddatum voor de startdatum ligt, zoniet, dan wordt de startdatum de einddatum(Dit doen we voor concepten)
Als 1 van de 2 leeg is, dan AfasFbSalesInvoiceLines.AfasFbOrderDate

/Invoice/cac:InvoiceLine/cac:DocumentReference

 

 

 

/Invoice/cac:InvoiceLine/cac:DocumentReference/cbc:ID

SETU

 

AfasPtDeclaration.AfasPtDeclarationCode - Declaratiecode + Als aanwezig AfasPtRealization.AfasPtIdentity -declaratienummer

/Invoice/cac:InvoiceLine/cac:DocumentReference/cbc:DocumentTypeCode

 

Niet gebruikt

 

/Invoice/cac:InvoiceLine/cac:AllowanceCharge

 

Voorwaarde

Alleen als er regelkorting is.

/Invoice/cac:InvoiceLine/cac:AllowanceCharge

 

 

 

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:ChargeIndicator

 

Voorwaarde

Als AfasFbSalesInvoiceLines.AfasFbAmtRowDiscount positief is: value = 'false'
Als het dus negatief is: value = 'True'

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:AllowanceChargeReason

 

Voorwaarde

Als AfasFbSalesInvoiceLines.AfasFbAmtRowDiscount positief is: value = 'Korting'
Als het dus negatief is: value = 'Toeslag'

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:Amount

 

Voorwaarde

currencyID=AfasFbSalesInvoiceLines.AfasFbCurrencyId value=AfasFbSalesInvoiceLines.AfasFbAmtRowDiscount afgerond op het aantal decimalen van de valuta

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:Amount/@currencyID

 

Waarde uit Profit

Valuta

/Invoice/cac:InvoiceLine/cac:Item

 

 

 

/Invoice/cac:InvoiceLine/cac:Item/cbc:Description

 

Voorwaarde

Als AfasFbSalesInvoiceLines.AfasFbDescriptionExtern gevult is, dan AfasFbSalesInvoiceLines.AfasFbDescriptionExtern
Anders AfasFbSalesInvoiceLines.AfasFbDescription
Als dit uiteindelijk nog steeds niks opleverd dan 'Empty'

/Invoice/cac:InvoiceLine/cac:Item/cbc:Name

 

Voorwaarde

Als AfasFbSalesInvoiceLines.AfasFbDescriptionExtern gevult is, dan AfasFbSalesInvoiceLines.AfasFbDescriptionExtern
Anders AfasFbSalesInvoiceLines.AfasFbDescription
Als dit uiteindelijk nog steeds niks opleverd dan 'Empty'

/Invoice/cac:InvoiceLine/cac:Item/cbc:Name

SETU

Voorwaarde

Als bij de itemcode die gedefinieerd is op AfasFbSalesInvoiceLines.AfasFbItemCodeId een 'SETU-itemsoort code' gevonden kan worden uit de tabel AfasFbSETUItemType, dan value = AfasFbSETUItemType.AfasFbCode in.
Als dat niet gevonden word, dan als:
- AfasFbSalesInvoiceLines.AfasFbItemType(Type item) = 1 (Werksoort), dan value="Regular"
- AfasFbSalesInvoiceLines.AfasFbItemType(Type item) = 6 (Kostensoort), dan value="Other deviant invoicing"

/Invoice/cac:InvoiceLine/cac:Item/cac:BuyersItemIdentification

 

 

 

/Invoice/cac:InvoiceLine/cac:Item/cac:BuyersItemIdentification/cbc:ID

 

Voorwaarde

Als Itemcode verkooprelatie gevonden kan worden in
AfasFbItemCodeCust waar gezocht naar wordt via join op AfasFbSalesInvoiceLines op
velden ItemCodeId, OrderNumber en DebtorID. Als Conditie doorgaat dan AfasFbItemCodeCust.AfasFbItemCodeCust -- itemcode verkooprelatie

/Invoice/cac:InvoiceLine/cac:Item/cac:SellersItemIdentification

 

 

 

/Invoice/cac:InvoiceLine/cac:Item/cac:SellersItemIdentification/cbc:ID

 

Waarde uit Profit

Itemcode

/Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory

 

 

 

/Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID

 

Voorwaarde

Als AfasFbSalesInvoiceLines.AfasFbVatCode niet leeg is dan kijken we naar onderstaande om de goede code te bepalen, behalve als het vatpercentage 0 is. Dan moet het Z worden
" , CASE WHEN Vat.AfasKnValueIntIdTc in ('2','3') then 'AE'" + vbCrLf + 'verlegd
" WHEN Vat.AfasKnValueIntIdTc = '4' then 'G'" + vbCrLf + 'export
" WHEN Vat.AfasKnValueIntIdTc = '6' then 'E'" + vbCrLf + 'vrijgesteld
" WHEN Vtg.AfasKnZeroTarifYN = '1' then 'Z'" + vbCrLf + 'nul tarief
" WHEN Vtg.AfasKnVatIctExcluded = '1' then 'E'" + vbCrLf + 'vrijgesteld
" WHEN Vtg.AfasKnColumnOVA = '1' then 'S'" + vbCrLf + 'extra verlaagd
" WHEN Vtg.AfasKnColumnOVA = '2' then 'S'" + vbCrLf + 'laag
" WHEN Vtg.AfasKnColumnOVA = '3' then 'S'" + vbCrLf + 'hoog
" ELSE 'S'" + vbCrLf + 'standaard

Als AfasFbSalesInvoiceLines.AfasFbVatCode leeg is, dan Altijd op E zetten

/Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent

 

Waarde uit Profit

 

/Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cac:TaxScheme

 

Vaste waarde

VAT

/Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cac:TaxScheme/cbc:ID

 

Vaste waarde

VAT

/Invoice/cac:InvoiceLine/cac:Item/cac:AdditionalItemProperty

SETU

Waarde uit Profit

Total hours

/Invoice/cac:InvoiceLine/cac:Item/cac:AdditionalItemProperty/cbc:Name

SETU

Waarde uit Profit

Totaal aantal uren

/Invoice/cac:InvoiceLine/cac:Item/cac:AdditionalItemProperty/cbc:Value

SETU

Waarde uit Profit

Periode

/Invoice/cac:InvoiceLine/cac:Item/cac:AdditionalItemProperty/cbc:Name

SETU

Voorwaarde

Naam kandidaat

Als de medewerker gevuld is op de factuurregel.

/Invoice/cac:InvoiceLine/cac:Item/cac:AdditionalItemProperty/cbc:Value

SETU

Voorwaarde

Als de medewerker gevuld is gevuld op de factuurregel: AfasFbSalesInvoiceLines.AfasFbEmployeeId en dan de omschrijving ervan, zodat je de medewerkernaam en achternaam krijgt

/Invoice/cac:InvoiceLine/cac:Price

 

 

 

/Invoice/cac:InvoiceLine/cac:Price/cbc:PriceAmount

 

Voorwaarde

Als er een regelkorting is, dan Nettoprijs.

Anders: Prijs

/Invoice/cac:InvoiceLine/cac:Price/cbc:PriceAmount/@currencyID

 

Waarde uit Profit

Valuta

/Invoice/cac:InvoiceLine/cac:Price/cbc:BaseQuantity

 

Waarde uit Profit

Als Eenheid code (UBL) gevuld is, dan haalt Profit de eenheid van het item op en vult deze in bij Unitcode. Anders wordt de waarde altijd EA en aantal eenheden.

/Invoice/cac:InvoiceLine/cac:Price/cbc:BaseQuantity/@unitCode

 

 

 

/Invoice/cac:InvoiceLine/cac:Price/cac:AllowanceCharge

 

Voorwaarde

Alleen bij regelkorting

/Invoice/cac:InvoiceLine/cac:Price/cac:AllowanceCharge/cbc:ChargeIndicator

 

 

 

/Invoice/cac:InvoiceLine/cac:Price/cac:AllowanceCharge/cbc:Amount

 

Voorwaarde

Discount afgerond op het
aantal decimalen van de valuta

/Invoice/cac:InvoiceLine/cac:Price/cac:AllowanceCharge/cbc:Amount/@currencyID

 

Waarde uit Profit

Valuta

Klik hier voor meer informatie over de opbouw van het UBL-onderdeel Factuurregels (InvoiceLines).

Direct naar

  1. E-factuur inrichten (verkoopfactuur)
  2. Inrichting facturering
  3. E-mailserver en afzender instellen
  4. Berichtsjabloon inrichten
  5. Bankrekeningnummer e-factuur instellen
  6. Neem contact op met verkooprelatie voor toestemming en juiste UBL-versie
  7. Verkooprelatie voor e-facturering inrichten
  8. E-factuur via Peppol inrichten (inkoopfactuur en verkoopfactuur)
  9. E-factuur via e-Verbinding inrichten (inkoopfactuur en verkoopfactuur)