OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-fpsc message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [ubl-fpsc] Joinery Invoice example


Greetings all

I've made a bit of a start on the examples and managed to finish the 0.80 joinery invoice example instance. I'd appreciate it if anyone would look at it and check it before the call today. 

I used a combination of XMLSpy (for an initial example cast from the Schema - required some temporary changes to the Schemas to get XML Spy's xml generator past the recursive loop problem), then brought the data and shape in from the 0.70 example with a tool called Stylus Studio which facitilitates mappings between instances and Schemas. 

We'll need to look at and possibly edit the path of the Schema location declaration depending on how the instances are going to be packaged. 

All the best

Steve

<?xml version="1.0"?>
<n:Invoice xmlns:n="urn:oasis:names:tc:ubl:Invoice:1.0:0.80" xmlns:cat="urn:oasis:names:tc:ubl:CommonAggregateTypes:1.0:0.80" xmlns:cct="urn:oasis:names:tc:ubl:CoreComponentTypes:1.0:0.80" xmlns:ccts="urn:oasis:names:tc:ubl:CoreComponentParameters:1.0:0.80" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:ubl:Invoice:1.0:0.80
UBL-Invoice-0.8-draft-3-1.xsd">
	<cat:ID>IN 2003/00645</cat:ID>
	<cat:IssueDate>2003-02-25</cat:IssueDate>
	<n:TaxPointDate>2003-02-25</n:TaxPointDate>
	<cat:OrderDocumentIdentification>
		<cat:DesignatorID>Seller</cat:DesignatorID>
		<cat:Value>S03-034257</cat:Value>
	</cat:OrderDocumentIdentification>
	<n:DespatchAdviceDocumentIdentification>
		<cat:DesignatorID>Seller</cat:DesignatorID>
		<cat:Value>DEL-03/55-712</cat:Value>
	</n:DespatchAdviceDocumentIdentification>
	<n:BuyerParty>
		<cat:ID/>
		<cat:AlternativePartyName>
			<cat:Name>Jerry Builder plc</cat:Name>
		</cat:AlternativePartyName>
		<cat:Address>
			<cat:ID/>
			<cat:Street>Marsh Lane</cat:Street>
			<cat:CityName>Nowhere</cat:CityName>
			<cat:PostalZone>NR18 4XX</cat:PostalZone>
			<cat:Countrysubentity>Norfolk</cat:Countrysubentity>
		</cat:Address>
		<cat:Contact>
			<cat:ID/>
			<cat:Name>Eva Brick</cat:Name>
		</cat:Contact>
	</n:BuyerParty>
	<cat:SellerParty>
		<cat:Party>
			<cat:ID/>
			<cat:AlternativePartyName>
				<cat:Name>Specialist Windows plc</cat:Name>
			</cat:AlternativePartyName>
			<cat:Address>
				<cat:ID/>
				<cat:HouseName>Snowhill Works</cat:HouseName>
				<cat:CityName>Little Snoring</cat:CityName>
				<cat:PostalZone>SM2 3NW</cat:PostalZone>
				<cat:Countrysubentity>Whereshire</cat:Countrysubentity>
			</cat:Address>
			<cat:PartyTaxScheme>
				<cat:CompanyID>03004567</cat:CompanyID>
				<cat:TaxScheme>
					<cat:ID>VAT</cat:ID>
				</cat:TaxScheme>
			</cat:PartyTaxScheme>
		</cat:Party>
	</cat:SellerParty>
	<cat:PaymentMeans>
		<cat:TypeCodeID/>
		<cat:PayeeFinancialAccount>
			<cat:ID>07044961</cat:ID>
			<cat:Name>Specialist Windows pc</cat:Name>
			<cat:TypeCode/>
			<cat:FinancialInstitutionBranch>
				<cat:ID>776631</cat:ID>
				<cat:FinancialInstitution>
					<cat:ID>LOYDGB852</cat:ID>
				</cat:FinancialInstitution>
			</cat:FinancialInstitutionBranch>
		</cat:PayeeFinancialAccount>
	</cat:PaymentMeans>
	<cat:PaymentTerms>
		<cat:ID/>
		<cat:Note>Settlement discount may be deducted if paid by due date</cat:Note>
		<cat:SettlementDiscountRateNumeric>2.5</cat:SettlementDiscountRateNumeric>
		<cat:SettlementPeriod>
			<cat:StartDateTime>2003-02-25T09:30:47-05:00</cat:StartDateTime>
			<cat:DurationMeasure unitCode="days">28</cat:DurationMeasure>
		</cat:SettlementPeriod>
	</cat:PaymentTerms>
	<cat:AllowanceCharge>
		<cat:ID/>
		<cat:ChargeIndicator>0</cat:ChargeIndicator>
		<cat:ReasonCode>trade</cat:ReasonCode>
		<cat:MultiplierFactorQuantity unitCode="1">.25</cat:MultiplierFactorQuantity>
	</cat:AllowanceCharge>
	<cat:TaxTotal>
		<cat:TaxAmounts>
			<cat:TaxableAmount currencyID="GBP">1337.56</cat:TaxableAmount>
			<cat:TaxAmount currencyID="GBP">238.45</cat:TaxAmount>
		</cat:TaxAmounts>
		<cat:TaxCategory>
			<cat:ID>STD</cat:ID>
			<cat:RatePercentNumeric>17.50</cat:RatePercentNumeric>
			<cat:TaxScheme>
				<cat:ID>VAT</cat:ID>
			</cat:TaxScheme>
		</cat:TaxCategory>
	</cat:TaxTotal>
	<cat:LegalTotals>
		<cat:TotalLineExtensionAmount currencyID="GBP">1397.50</cat:TotalLineExtensionAmount>
		<cat:TotalToBePaidAmount currencyID="GBP">1635.95</cat:TotalToBePaidAmount>
	</cat:LegalTotals>
	<cat:InvoiceLine>
		<cat:ID>A</cat:ID>
		<cat:InvoicedQuantity unitCode="unit">2</cat:InvoicedQuantity>
		<cat:LineExtensionAmount currencyID="GBP">205.00</cat:LineExtensionAmount>
		<cat:OrderedItemIdentification>
			<cat:DesignatorID>Buyer</cat:DesignatorID>
			<cat:Value>A</cat:Value>
		</cat:OrderedItemIdentification>
		<cat:Item>
			<cat:ID/>
			<cat:SellersItemIdentification>
				<cat:DesignatorID>Seller</cat:DesignatorID>
				<cat:Value>236WV</cat:Value>
				<cat:PhysicalAttribute>
					<cat:AttributeID>wood</cat:AttributeID>
					<cat:DescriptionID>soft</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>finish</cat:AttributeID>
					<cat:DescriptionID>primed</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>fittings</cat:AttributeID>
					<cat:DescriptionID>satin</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>glazing</cat:AttributeID>
					<cat:DescriptionID>single</cat:DescriptionID>
				</cat:PhysicalAttribute>
			</cat:SellersItemIdentification>
			<cat:TaxCategory>
				<cat:ID>STD</cat:ID>
				<cat:TaxScheme>
					<cat:ID>VAT</cat:ID>
				</cat:TaxScheme>
			</cat:TaxCategory>
			<cat:BasePrice>
				<cat:PriceAmount currencyID="GBP">102.50</cat:PriceAmount>
			</cat:BasePrice>
		</cat:Item>
		<cat:BasePrice>
			<cat:PriceAmount currencyID="GBP">102.50</cat:PriceAmount>
		</cat:BasePrice>
	</cat:InvoiceLine>
	<cat:InvoiceLine>
		<cat:ID>B</cat:ID>
		<cat:InvoicedQuantity unitCode="unit">3</cat:InvoicedQuantity>
		<cat:LineExtensionAmount currencyID="GBP">720.00</cat:LineExtensionAmount>
		<cat:OrderedItemIdentification>
			<cat:DesignatorID>Buyer</cat:DesignatorID>
			<cat:Value>B</cat:Value>
		</cat:OrderedItemIdentification>
		<cat:Item>
			<cat:ID/>
			<cat:SellersItemIdentification>
				<cat:DesignatorID>Seller</cat:DesignatorID>
				<cat:Value>340TW</cat:Value>
				<cat:PhysicalAttribute>
					<cat:AttributeID>hand</cat:AttributeID>
					<cat:DescriptionID>RH</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>wood</cat:AttributeID>
					<cat:DescriptionID>hard</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>finish</cat:AttributeID>
					<cat:DescriptionID>stain</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>fittings</cat:AttributeID>
					<cat:DescriptionID>brass</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>glazing</cat:AttributeID>
					<cat:DescriptionID>double</cat:DescriptionID>
				</cat:PhysicalAttribute>
			</cat:SellersItemIdentification>
			<cat:TaxCategory>
				<cat:ID>STD</cat:ID>
				<cat:TaxScheme>
					<cat:ID>VAT</cat:ID>
				</cat:TaxScheme>
			</cat:TaxCategory>
			<cat:BasePrice>
				<cat:PriceAmount currencyID="GBP">240.00</cat:PriceAmount>
			</cat:BasePrice>
		</cat:Item>
		<cat:BasePrice>
			<cat:PriceAmount currencyID="GBP">240.00</cat:PriceAmount>
		</cat:BasePrice>
	</cat:InvoiceLine>
	<cat:InvoiceLine>
		<cat:ID>C</cat:ID>
		<cat:InvoicedQuantity unitCode="unit">3</cat:InvoicedQuantity>
		<cat:LineExtensionAmount currencyID="GBP">720.00</cat:LineExtensionAmount>
		<cat:OrderedItemIdentification>
			<cat:DesignatorID>Buyer</cat:DesignatorID>
			<cat:Value>C</cat:Value>
		</cat:OrderedItemIdentification>
		<cat:Item>
			<cat:ID/>
			<cat:SellersItemIdentification>
				<cat:DesignatorID>Seller</cat:DesignatorID>
				<cat:Value>340TW</cat:Value>
				<cat:PhysicalAttribute>
					<cat:AttributeID>hand</cat:AttributeID>
					<cat:DescriptionID>LH</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>wood</cat:AttributeID>
					<cat:DescriptionID>hard</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>finish</cat:AttributeID>
					<cat:DescriptionID>stain</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>fittings</cat:AttributeID>
					<cat:DescriptionID>brass</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>glazing</cat:AttributeID>
					<cat:DescriptionID>double</cat:DescriptionID>
				</cat:PhysicalAttribute>
			</cat:SellersItemIdentification>
			<cat:TaxCategory>
				<cat:ID>STD</cat:ID>
				<cat:TaxScheme>
					<cat:ID>VAT</cat:ID>
				</cat:TaxScheme>
			</cat:TaxCategory>
			<cat:BasePrice>
				<cat:PriceAmount currencyID="GBP">240.00</cat:PriceAmount>
			</cat:BasePrice>
		</cat:Item>
		<cat:BasePrice>
			<cat:PriceAmount currencyID="GBP">240.00</cat:PriceAmount>
		</cat:BasePrice>
	</cat:InvoiceLine>
	<cat:InvoiceLine>
		<cat:ID>D</cat:ID>
		<cat:InvoicedQuantity unitCode="unit">1</cat:InvoicedQuantity>
		<cat:LineExtensionAmount currencyID="GBP">110.00</cat:LineExtensionAmount>
		<cat:OrderedItemIdentification>
			<cat:DesignatorID>Buyer</cat:DesignatorID>
			<cat:Value>D</cat:Value>
		</cat:OrderedItemIdentification>
		<cat:Item>
			<cat:ID/>
			<cat:SellersItemIdentification>
				<cat:DesignatorID/>
				<cat:Value>FDDR15</cat:Value>
				<cat:PhysicalAttribute>
					<cat:AttributeID>hand</cat:AttributeID>
					<cat:DescriptionID>RH</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>wood</cat:AttributeID>
					<cat:DescriptionID>hard</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>finish</cat:AttributeID>
					<cat:DescriptionID>stain</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>fittings</cat:AttributeID>
					<cat:DescriptionID>brass</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>glazing</cat:AttributeID>
					<cat:DescriptionID>safety</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:MeasurementDimension>
					<cat:AttributeID>height</cat:AttributeID>
					<cat:Measure unitCode="inches">78</cat:Measure>
					<cat:Description>Height in inches</cat:Description>
				</cat:MeasurementDimension>
				<cat:MeasurementDimension>
					<cat:AttributeID>width</cat:AttributeID>
					<cat:Measure unitCode="inches">13</cat:Measure>
					<cat:Description>Width in inches</cat:Description>
				</cat:MeasurementDimension>
			</cat:SellersItemIdentification>
			<cat:TaxCategory>
				<cat:ID>STD</cat:ID>
				<cat:TaxScheme>
					<cat:ID>VAT</cat:ID>
				</cat:TaxScheme>
			</cat:TaxCategory>
			<cat:BasePrice>
				<cat:PriceAmount currencyID="GBP">110.00</cat:PriceAmount>
			</cat:BasePrice>
		</cat:Item>
		<cat:BasePrice>
			<cat:PriceAmount currencyID="GBP">110.00</cat:PriceAmount>
		</cat:BasePrice>
	</cat:InvoiceLine>
	<cat:InvoiceLine>
		<cat:ID>E</cat:ID>
		<cat:InvoicedQuantity unitCode="feet">30</cat:InvoicedQuantity>
		<cat:LineExtensionAmount currencyID="GBP">75.00</cat:LineExtensionAmount>
		<cat:OrderedItemIdentification>
			<cat:DesignatorID>Buyer</cat:DesignatorID>
			<cat:Value>E</cat:Value>
		</cat:OrderedItemIdentification>
		<cat:Item>
			<cat:ID/>
			<cat:SellersItemIdentification>
				<cat:DesignatorID>Seller</cat:DesignatorID>
				<cat:Value>HW100X50</cat:Value>
				<cat:PhysicalAttribute>
					<cat:AttributeID>wood</cat:AttributeID>
					<cat:DescriptionID>hard</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:PhysicalAttribute>
					<cat:AttributeID>finish</cat:AttributeID>
					<cat:DescriptionID>stain</cat:DescriptionID>
				</cat:PhysicalAttribute>
				<cat:MeasurementDimension>
					<cat:AttributeID>length</cat:AttributeID>
					<cat:Measure unitCode="feet">6</cat:Measure>
					<cat:Description>Length in feet</cat:Description>
				</cat:MeasurementDimension>
			</cat:SellersItemIdentification>
			<cat:TaxCategory>
				<cat:ID>STD</cat:ID>
				<cat:TaxScheme>
					<cat:ID>VAT</cat:ID>
				</cat:TaxScheme>
			</cat:TaxCategory>
			<cat:BasePrice>
				<cat:PriceAmount currencyID="GBP">2.50</cat:PriceAmount>
			</cat:BasePrice>
		</cat:Item>
		<cat:BasePrice>
			<cat:PriceAmount currencyID="GBP">2.50</cat:PriceAmount>
		</cat:BasePrice>
	</cat:InvoiceLine>
	<cat:InvoiceLine>
		<cat:ID>F</cat:ID>
		<cat:InvoicedQuantity unitCode="unit">1</cat:InvoicedQuantity>
		<cat:LineExtensionAmount currencyID="GBP">25.00</cat:LineExtensionAmount>
		<cat:OrderedItemIdentification>
			<cat:DesignatorID>Buyer</cat:DesignatorID>
			<cat:Value>F</cat:Value>
		</cat:OrderedItemIdentification>
		<cat:Item>
			<cat:ID/>
			<cat:SellersItemIdentification>
				<cat:DesignatorID>Seller</cat:DesignatorID>
				<cat:Value>Delivery</cat:Value>
			</cat:SellersItemIdentification>
			<cat:TaxCategory>
				<cat:ID>STD</cat:ID>
				<cat:TaxScheme>
					<cat:ID>VAT</cat:ID>
				</cat:TaxScheme>
			</cat:TaxCategory>
			<cat:BasePrice>
				<cat:PriceAmount currencyID="GBP">25.00</cat:PriceAmount>
			</cat:BasePrice>
		</cat:Item>
		<cat:BasePrice>
			<cat:PriceAmount currencyID="GBP">25.00</cat:PriceAmount>
		</cat:BasePrice>
	</cat:InvoiceLine>
</n:Invoice>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]