﻿<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="..\Stylesheet.xsl"?>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -    -->
<!--     Svefaktura - Tomma element skall inte skickas, men 2 undantag finns    -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -    -->
<Invoice xmlns="urn:sfti:documents:BasicInvoice:1:0"
   xmlns:cac="urn:sfti:CommonAggregateComponents:1:0"
   xmlns:cbc="urn:oasis:names:tc:ubl:CommonBasicComponents:1:0"
   xmlns:ccts="urn:oasis:names:tc:ubl:CoreComponentParameters:1:0"
   xmlns:cur="urn:oasis:names:tc:ubl:codelist:CurrencyCode:1:0"
   xmlns:sdt="urn:oasis:names:tc:ubl:SpecializedDatatypes:1:0"
   xmlns:udt="urn:oasis:names:tc:ubl:UnspecializedDatatypes:1:0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<ID>110432</ID>
	<cbc:IssueDate>2007-08-08</cbc:IssueDate>
	<InvoiceTypeCode>380</InvoiceTypeCode>
	<cbc:Note>Tomma element skall inte skickas i Svefaktura. Men det finns två undantag, när grundstandarden kräver att elementen skall anges även när naturlig uppgift saknas - elementen får då lämnas tomma. De är:
	- elementet InvoiceLine/Item kan vara tomt om fakturaraden inte har någon naturlig koppling till produkt eller artikel.
	- elementet InvoiceLine/DespatchLine/LineID kan vara tomt när följesedel anges på rad, dvs fakturaraden måste inte vara kopplad till viss rad på följesedeln.
        </cbc:Note>
	<LineItemCountNumeric>2</LineItemCountNumeric>
	<AdditionalDocumentReference>
		<cac:ID>Ert brev 2007-05-28</cac:ID>
	</AdditionalDocumentReference>
	<cac:BuyerParty>
		<cac:Party>
			<cac:PartyName>
				<cbc:Name>Sparman och Son</cbc:Name>
			</cac:PartyName>
			<cac:Address>
				<cbc:StreetName>Rimvägen 10 C</cbc:StreetName>
				<cbc:CityName>Stockholm</cbc:CityName>
				<cbc:PostalZone>12345</cbc:PostalZone>
			</cac:Address>
		</cac:Party>
	</cac:BuyerParty>
	<cac:SellerParty>
		<cac:Party>
			<cac:PartyName>
				<cbc:Name>Allfix Ltd</cbc:Name>
			</cac:PartyName>
			<cac:Address>
				<cbc:Postbox>PO Box 123</cbc:Postbox>
				<cbc:CityName>New York</cbc:CityName>
			</cac:Address>
			<cac:PartyTaxScheme>
				<cac:CompanyID>1234567890</cac:CompanyID>
				<cbc:ExemptionReason>F-skattebevis finns</cbc:ExemptionReason>
				<cac:RegistrationAddress>
					<cbc:CityName>Stockholm</cbc:CityName>
					<cac:Country>
						<cac:IdentificationCode>SE</cac:IdentificationCode>
					</cac:Country>
				</cac:RegistrationAddress>
				<cac:TaxScheme>
					<cac:ID>SWT</cac:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyTaxScheme>
				<cac:CompanyID>SE123456789012</cac:CompanyID>
				<cac:RegistrationAddress>
					<cac:Country>
						<cac:IdentificationCode>SE</cac:IdentificationCode>
					</cac:Country>
				</cac:RegistrationAddress>
				<cac:TaxScheme>
					<cac:ID>VAT</cac:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:Contact>
				<cbc:Name>Paer Andersson</cbc:Name>
			</cac:Contact>
		</cac:Party>
	</cac:SellerParty>
	<cac:Delivery>
		<cbc:ActualDeliveryDateTime>2007-08-07T23:30:00</cbc:ActualDeliveryDateTime>
	</cac:Delivery>
	<cac:LegalTotal>
		<cbc:LineExtensionTotalAmount amountCurrencyID="SEK">0</cbc:LineExtensionTotalAmount>
		<cbc:TaxInclusiveTotalAmount amountCurrencyID="SEK">0</cbc:TaxInclusiveTotalAmount>
	</cac:LegalTotal>
	<cac:InvoiceLine>
		<cac:ID>1</cac:ID>
		<cbc:LineExtensionAmount amountCurrencyID="SEK">-2000</cbc:LineExtensionAmount>
		<cbc:Note>Erlagd deposition
		(Illustrerar utelämnad artikel)</cbc:Note>
		<cac:Item>
		</cac:Item>
	</cac:InvoiceLine>
	<cac:InvoiceLine>
       		<cac:ID>2</cac:ID>
      		<cbc:InvoicedQuantity quantityUnitCode="sats">1</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount amountCurrencyID="SEK">2000</cbc:LineExtensionAmount>
		<cbc:Note>(Illustrerar användning av följesedel utan rad)</cbc:Note>
		<cac:DespatchLineReference>
			<cac:LineID></cac:LineID>
			<cac:DocumentReference>
			<cac:ID>20070807A</cac:ID>
			</cac:DocumentReference>
		</cac:DespatchLineReference>
      		<cac:Item>
         		<cbc:Description>Provkollektion C1</cbc:Description>
      		</cac:Item>
   	</cac:InvoiceLine>
	<RequisitionistDocumentReference>
		<cac:ID>T-Service</cac:ID>
	</RequisitionistDocumentReference>
</Invoice>
