<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed under European Union Public Licence (EUPL) version 1.2.

-->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   -->
<!--     PEPPOL BIS Billing 3.0 - MAXIMUM content INVOICE                        -->
<!--     Reference - http://docs.peppol.eu/poacc/billing/3.0/                    -->
<!--                                                                             -->
<!--     Note - The purpose is to show the use of allowances and charges on all  -->
<!--     the levels in the invoice                                               -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   -->

<Invoice 
 xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" 
 xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
 xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
	<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
	<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
	<cbc:ID>2018210</cbc:ID>
	<cbc:IssueDate>2018-10-02</cbc:IssueDate>
	<cbc:DueDate>2018-11-02</cbc:DueDate>
	<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
	<cbc:DocumentCurrencyCode>SEK</cbc:DocumentCurrencyCode>
	<cbc:BuyerReference>EmPe</cbc:BuyerReference>

	<cac:OrderReference>
		<cbc:ID>20180117</cbc:ID>
		<cbc:SalesOrderID>INK/2018/EmPe</cbc:SalesOrderID>
	</cac:OrderReference>

	<cac:AccountingSupplierParty>
		<cac:Party>
			<cbc:EndpointID schemeID="0007">1234567890</cbc:EndpointID>
			<cac:PartyIdentification>
				<cbc:ID schemeID="0088">1234567890123</cbc:ID >
			</cac:PartyIdentification>
			<cac:PostalAddress>
				<cbc:AdditionalStreetName>Box 1234</cbc:AdditionalStreetName>
				<cbc:CityName>Stockholm</cbc:CityName>
				<cbc:PostalZone>12345</cbc:PostalZone>
				<cac:Country>
					<cbc:IdentificationCode>SE</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>SE123456789001</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>Godkänd för F-skatt</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>TAX</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>Lagerproffset AB</cbc:RegistrationName>
				<cbc:CompanyID schemeID="0007">1234567890</cbc:CompanyID>
				<cbc:CompanyLegalForm>Säte: Stockholm</cbc:CompanyLegalForm>
			</cac:PartyLegalEntity>
			<cac:Contact>
				<cbc:Telephone>0201234567</cbc:Telephone>
			</cac:Contact>
		</cac:Party>
	</cac:AccountingSupplierParty>

	<cac:AccountingCustomerParty>
		<cac:Party>
			<cbc:EndpointID schemeID="0007">9876543210</cbc:EndpointID>
			<cac:PostalAddress>
				<cbc:StreetName>Långgatan 99</cbc:StreetName>
				<cbc:CityName>Stockholm</cbc:CityName>
				<cbc:PostalZone>10203</cbc:PostalZone>
				<cac:Country>
					<cbc:IdentificationCode>SE</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>Tekniska Verken i Utmarken AB</cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingCustomerParty>

	<cac:Delivery>
		<cbc:ActualDeliveryDate>2018-10-01</cbc:ActualDeliveryDate>
		<cac:DeliveryLocation>
			<cbc:ID schemeID="0088">9876543210999</cbc:ID>
		</cac:DeliveryLocation>
	</cac:Delivery>

	<cac:PaymentMeans>
		<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
		<cbc:PaymentID>F/N ABCDEFG</cbc:PaymentID>
		<cac:PayeeFinancialAccount>
			<cbc:ID>12341234567</cbc:ID>
		        <cac:FinancialInstitutionBranch>
			   <cbc:ID>BANKSBIC</cbc:ID>
		        </cac:FinancialInstitutionBranch>
		</cac:PayeeFinancialAccount>
	</cac:PaymentMeans>

	<cac:PaymentTerms>
		<cbc:Note>30 dagar netto. Dröjsmålsränta: 12%</cbc:Note>
	</cac:PaymentTerms>

	<cac:AllowanceCharge> 
		<!-- Campaign discount, 10% value of the promoted item: -->
		<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
		<cbc:AllowanceChargeReason>Campaign discount</cbc:AllowanceChargeReason>
		<cbc:MultiplierFactorNumeric>10</cbc:MultiplierFactorNumeric>
		<cbc:Amount currencyID="SEK">450</cbc:Amount>
		<cbc:BaseAmount currencyID="SEK">4500</cbc:BaseAmount>
		<cac:TaxCategory>
			<cbc:ID>S</cbc:ID>
			<cbc:Percent>25</cbc:Percent>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>

	<cac:AllowanceCharge> 
		<!-- Charge, cost based on value of invoiced items: -->
		<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
		<cbc:AllowanceChargeReasonCode>WH</cbc:AllowanceChargeReasonCode>
		<cbc:AllowanceChargeReason>Lagerhållning</cbc:AllowanceChargeReason>
		<cbc:MultiplierFactorNumeric>2</cbc:MultiplierFactorNumeric>
		<cbc:Amount currencyID="SEK">3530</cbc:Amount>
		<cbc:BaseAmount currencyID="SEK">176500</cbc:BaseAmount>
		<cac:TaxCategory>
			<cbc:ID>S</cbc:ID>
			<cbc:Percent>25</cbc:Percent>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>

	<cac:AllowanceCharge> 
		<!-- Charge, fixed cost per invoice: -->
		<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
		<cbc:AllowanceChargeReason>Expeditionsavgift</cbc:AllowanceChargeReason>
		<cbc:Amount currencyID="SEK">100</cbc:Amount>
		<cac:TaxCategory>
			<cbc:ID>S</cbc:ID>
			<cbc:Percent>25</cbc:Percent>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>

	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="SEK">44920</cbc:TaxAmount>
		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="SEK">179680</cbc:TaxableAmount>
			<cbc:TaxAmount currencyID="SEK">44920</cbc:TaxAmount>
			<cac:TaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>25</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:TaxCategory>
		</cac:TaxSubtotal>
	</cac:TaxTotal>

	<cac:LegalMonetaryTotal>
		<cbc:LineExtensionAmount currencyID="SEK">176500</cbc:LineExtensionAmount>
		<cbc:TaxExclusiveAmount currencyID="SEK">179680</cbc:TaxExclusiveAmount>
		<cbc:TaxInclusiveAmount currencyID="SEK">224600</cbc:TaxInclusiveAmount>
		<cbc:AllowanceTotalAmount currencyID="SEK">450</cbc:AllowanceTotalAmount>
		<cbc:ChargeTotalAmount currencyID="SEK">3630</cbc:ChargeTotalAmount>
		<cbc:PrepaidAmount currencyID="SEK">0</cbc:PrepaidAmount>
		<cbc:PayableRoundingAmount currencyID="SEK">0</cbc:PayableRoundingAmount>
		<cbc:PayableAmount currencyID="SEK">224600</cbc:PayableAmount>
	</cac:LegalMonetaryTotal>

	<cac:InvoiceLine>
		<cbc:ID>1</cbc:ID>
		<cbc:Note>Utgående modell</cbc:Note>
		<cbc:InvoicedQuantity unitCode="EA">100</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount currencyID="SEK">172000</cbc:LineExtensionAmount>

		<cac:AllowanceCharge> 
			<!-- Discount, no sequential calculation: -->
			<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
			<cbc:AllowanceChargeReasonCode>65</cbc:AllowanceChargeReasonCode>
			<cbc:AllowanceChargeReason>Produktionsfel</cbc:AllowanceChargeReason>
			<cbc:MultiplierFactorNumeric>6</cbc:MultiplierFactorNumeric>
			<cbc:Amount currencyID="SEK">12000</cbc:Amount>
			<cbc:BaseAmount currencyID="SEK">200000</cbc:BaseAmount>
		</cac:AllowanceCharge>
		<cac:AllowanceCharge> 
			<!-- Discount, no sequential calculation: -->
			<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
			<cbc:AllowanceChargeReasonCode>68</cbc:AllowanceChargeReasonCode>
			<cbc:AllowanceChargeReason>Utgående serie</cbc:AllowanceChargeReason>
			<cbc:MultiplierFactorNumeric>20</cbc:MultiplierFactorNumeric>
			<cbc:Amount currencyID="SEK">40000</cbc:Amount>
			<cbc:BaseAmount currencyID="SEK">200000</cbc:BaseAmount>
		</cac:AllowanceCharge>
		<cac:AllowanceCharge> 
			<!-- Charge for service, no sequential calculation: -->
			<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
			<cbc:AllowanceChargeReasonCode>ACJ</cbc:AllowanceChargeReasonCode>
			<cbc:AllowanceChargeReason>Målning</cbc:AllowanceChargeReason>
			<cbc:MultiplierFactorNumeric>12</cbc:MultiplierFactorNumeric>
			<cbc:Amount currencyID="SEK">24000</cbc:Amount>
			<cbc:BaseAmount currencyID="SEK">200000</cbc:BaseAmount>
		</cac:AllowanceCharge>

		<cac:Item>
			<cbc:Name>21" Specialrör AL, rak, 5.3 m</cbc:Name>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>25</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
		</cac:Item>

		<cac:Price>
			<cbc:PriceAmount currencyID="SEK">2000</cbc:PriceAmount>
			<cbc:BaseQuantity unitCode="EA">1</cbc:BaseQuantity>
			<cac:AllowanceCharge> 
				<!-- Discount on list price: -->
				<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
				<cbc:Amount currencyID="SEK">100</cbc:Amount>
				<cbc:BaseAmount currencyID="SEK">2100</cbc:BaseAmount>
			</cac:AllowanceCharge>
		</cac:Price>
	</cac:InvoiceLine>

	<cac:InvoiceLine>
		<cbc:ID>2</cbc:ID>
		<cbc:Note>Promotion campaign</cbc:Note>
		<cbc:InvoicedQuantity unitCode="EA">5</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount currencyID="SEK">4500</cbc:LineExtensionAmount>

		<cac:AllowanceCharge> 
			<!-- Discount, implied sequential calculation: -->
			<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
			<cbc:AllowanceChargeReason>Leveransstörning</cbc:AllowanceChargeReason>
			<cbc:MultiplierFactorNumeric>20</cbc:MultiplierFactorNumeric>
			<cbc:Amount currencyID="SEK">1000</cbc:Amount>
			<cbc:BaseAmount currencyID="SEK">5000</cbc:BaseAmount>
		</cac:AllowanceCharge>
		<cac:AllowanceCharge> 
			<!-- Discount, implied sequential calculation: -->
			<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
			<cbc:AllowanceChargeReason>Instegsartikel, ny serie</cbc:AllowanceChargeReason>
			<cbc:MultiplierFactorNumeric>25</cbc:MultiplierFactorNumeric>
			<cbc:Amount currencyID="SEK">1000</cbc:Amount>
			<cbc:BaseAmount currencyID="SEK">4000</cbc:BaseAmount>
		</cac:AllowanceCharge>
		<cac:AllowanceCharge> 
			<!-- Charge for service, implied sequential calculation: -->
			<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
			<cbc:AllowanceChargeReasonCode>ACJ</cbc:AllowanceChargeReasonCode>
			<cbc:AllowanceChargeReason>Målning</cbc:AllowanceChargeReason>
			<cbc:MultiplierFactorNumeric>50</cbc:MultiplierFactorNumeric>
			<cbc:Amount currencyID="SEK">1500</cbc:Amount>
			<cbc:BaseAmount currencyID="SEK">3000</cbc:BaseAmount>
		</cac:AllowanceCharge>

		<cac:Item>
			<cbc:Name>21" Specialrör AL, rak, 5.3 m, med muff</cbc:Name>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>25</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
		</cac:Item>

		<cac:Price>
			<cbc:PriceAmount currencyID="SEK">5000</cbc:PriceAmount>
			<cbc:BaseQuantity unitCode="EA">5</cbc:BaseQuantity>
			<cac:AllowanceCharge> 
				<!-- Discount on list price: -->
				<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
				<cbc:Amount currencyID="SEK">1000</cbc:Amount>
				<cbc:BaseAmount currencyID="SEK">6000</cbc:BaseAmount>
			</cac:AllowanceCharge>
		</cac:Price>
	</cac:InvoiceLine>

</Invoice>
