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/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 |
Indien leeg: Bijbehorende order |
/Invoice/cac:OrderReference/cbc:ID |
Geen SETU en BE |
Als AfasFbCustomerReference = leeg dan AfasFbSalesInvoice.AfasPtInvoiceId |
Indien leeg: Factuurnummer |
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 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 |
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 |
/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 |
/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 |
/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 |
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. |
/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 |
/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 |
/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 |
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. |
/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. |
/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 |
/Invoice/cac:PaymentMeans/cac:PaymentMandate/cbc:ID |
Niet gebruikt |
Als geen incassomachting gevonden, 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. |
- Klik hier voor meer informatie over de opbouw van het UBL-onderdeel Betalingsmethode (PaymentMeans).
- Klik hier voor meer informatie over de opbouw van het UBL-onderdeel Betalingsconditie (PaymentTerms).
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:
|
/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:
|
/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/cac:LegalMonetaryTotal/cbc:PayableAmount/@currencyID |
Waarde uit Profit |
Valuta |
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' |
/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) |
/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) |
/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' |
/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:AllowanceChargeReason |
|
Voorwaarde |
Als AfasFbSalesInvoiceLines.AfasFbAmtRowDiscount positief is: value = 'Korting' |
/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 |
/Invoice/cac:InvoiceLine/cac:Item/cbc:Name |
|
Voorwaarde |
Als AfasFbSalesInvoiceLines.AfasFbDescriptionExtern gevult is, dan AfasFbSalesInvoiceLines.AfasFbDescriptionExtern |
/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. |
/Invoice/cac:InvoiceLine/cac:Item/cac:BuyersItemIdentification |
|
|
|
/Invoice/cac:InvoiceLine/cac:Item/cac:BuyersItemIdentification/cbc:ID |
|
Voorwaarde |
Als Itemcode verkooprelatie gevonden kan worden in |
/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 |
/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 |
/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).