<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="ProgrammersReference.xslt"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://ePocket.no/Handyman62/Api" targetNamespace="http://ePocket.no/Handyman62/Api" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="invoicelist">
		<xs:annotation>
			<xs:documentation>ePocket Handyman Invocie export</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="invoice" minOccurs="1" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="customer" minOccurs="1" maxOccurs="1">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="vatnumber" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="customerno" type="xs:integer" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Handyman internal customernumber</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="backofficeno" minOccurs="1">
											<xs:annotation>
												<xs:documentation>External customernumber</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="255"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="customername" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="40"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="address1" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="40"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="streetno" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="10"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="address2" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="40"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="zip" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="7"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="city" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="30"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="contact" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="40"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="tel1" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="tel2" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="discountmaterial" type="xs:float" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Percentage discount on material</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="discountother" type="xs:float" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Percentage discount on hours and cost</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="email" minOccurs="1">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="255"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="companycustomer" minOccurs="1">
											<xs:annotation>
												<xs:documentation>F=Company, P=Person</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="1"/>
													<xs:enumeration value="F"/>
													<xs:enumeration value="P"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="order" minOccurs="1" maxOccurs="1">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="backofficeno" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Backoffice ordernumber. Automatic generated servicefee invoices will not have any orderdetails</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="startdate" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Startdate of the order</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:dateTime"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="finishdate" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Finishdate of the order</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:dateTime"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="departmentid" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Deportment backoffice id connected to order</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="255"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="customerreference" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Optional reference for order</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="50"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="mainorder" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Optional reference for order</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="50"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="requisition" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Optional reference for order</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="50"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="manager" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Official in charge for the order</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="installationlist" minOccurs="0">
											<xs:annotation>
												<xs:documentation>List of installations connected to order. 
							Only applies to order of type of installation or repair (10 and 11). 
						</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="installation" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="installationid">
																	<xs:simpleType>
																		<xs:annotation>
																			<xs:documentation>ID of instalation to connect to order</xs:documentation>
																		</xs:annotation>
																		<xs:restriction base="xs:string">
																			<xs:maxLength value="255"/>
																		</xs:restriction>
																	</xs:simpleType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="invoiceinfo" minOccurs="1" maxOccurs="1">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="invoiceno" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Invoice number generated on invoicing in Handyman Invoice</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="originalinvoiceno" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Invoice number for original invoice. Only valid for credit invoices</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="invoicedate" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Date when the invoice was created</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:dateTime"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="description" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Description. br replaces linefeed. Sum of all descriptions in description element</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="duedate" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Duedate for the invoice</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:dateTime"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="summaterials" type="xs:float" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Sum of all materials on invoice </xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="sumwork" type="xs:float" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Sum of all worktime on invoice </xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="yourref" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Customer contactperson on the order/invoice</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="50"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="ourref" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Official in charge on the order/invoice</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="50"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="sumcost" type="xs:float" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Sum of the cost related to all invoicelines</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="invoiceamount" type="xs:float" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Totalamount to be invoiced</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="vat" type="xs:float" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Total VAT on the invoice</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="vatpercent" type="xs:float" minOccurs="1"/>
										<xs:element name="amountpaid" type="xs:float" minOccurs="1">
											<xs:annotation>
												<xs:documentation>If a payment is registered in Handyman Invoice, the amount will be exported here</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="reminderno" type="xs:integer" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Number of payment reminders sent to the customer</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="paymentdate" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Date of when the payment is registered</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:dateTime"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="paymentcomment" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Comment for invoice</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="roundoff" type="xs:float" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Total roundoff on the invoice</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="deliverydate" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Deliverydate on the invoice</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:dateTime"/>
											</xs:simpleType>
										</xs:element>
										<xs:element name="deliveryaddress" minOccurs="1">
											<xs:annotation>
												<xs:documentation>Same as address1 in the location of the order</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="60"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="kid" minOccurs="1">
											<xs:annotation>
												<xs:documentation>KID generated based on settings in Handyman Invoice. KID can be moduls 10 or 11</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="contractid" minOccurs="0">
											<xs:annotation>
												<xs:documentation>ID of the contract which the invoice is created from</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="contractname" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Name of the contract which the invoice is created from</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="50"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="invoicefee" type="xs:float" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Invoicefee on the invoice</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="fromdate" type="xs:dateTime" minOccurs="0">
											<xs:annotation>
												<xs:documentation>The servicefee invoices is invoiced based on settings in the contract. FromDate is the first day of the invoiced period for the invoice</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="todate" type="xs:dateTime" minOccurs="0">
											<xs:annotation>
												<xs:documentation>The servicefee invoices is invoiced based on settings in the contract. ToDate is the last day of the invoiced period for the invoice</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="groupingvaluelist">
								<xs:annotation>
									<xs:documentation>List of allowed values for current grouping</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="groupingvalueitem" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="groupingvalue">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="description">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="100"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="fixedprice" type="xs:float">
														<xs:annotation>
															<xs:documentation>Fixed price for item</xs:documentation>
														</xs:annotation>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="materiallist">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="material" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="itemno" minOccurs="1">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="255"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="description" minOccurs="1">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="4096"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="unit" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Unit of measure of the item</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="quantity" type="xs:float" minOccurs="1"/>
													<xs:element name="price" type="xs:float" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Price per item</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="vat" type="xs:float" minOccurs="1"/>
													<xs:element name="vatpercent" type="xs:float" minOccurs="1"/>
													<xs:element name="sumprice" type="xs:float" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Total price of the invoiceline, including environmental fee</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="cost" type="xs:float" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Total cost of the invoiceline</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="discount" type="xs:float" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Percentage discount on the invoiceline</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="environmentalfee" type="xs:float" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Environmental fee on the invoiceline</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="storeid" minOccurs="1">
														<xs:annotation>
															<xs:documentation>ID of the store where the item is picked from</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="storename" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Name of the store where the item is picked from</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="40"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="groupingvalue" minOccurs="0">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="wholesalerid" minOccurs="1">
														<xs:annotation>
															<xs:documentation>ID of the wholesaler for the item number. May be empty if no wholesaler was selected for the registration</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="employeename" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Name of employee adding the extra information</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="30"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="employeenumber" minOccurs="0">
														<xs:annotation>
															<xs:documentation>ID of employee adding the extra information</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="registrationinfo" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Extra information to the entry</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="255"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="registrationdate" type="xs:dateTime" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Date for when the extra information was entered</xs:documentation>
														</xs:annotation>
													</xs:element>													
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="hourslist">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="hours" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="itemno" minOccurs="1">
														<xs:annotation>
															<xs:documentation>SalarycodeID of the invoiceline</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="255"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="description" minOccurs="1">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="4096"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="unit" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Unit of measure of the registration</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="quantity" type="xs:float" minOccurs="1"/>
													<xs:element name="price" type="xs:float" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Price per hour</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="vat" type="xs:float" minOccurs="1"/>
													<xs:element name="vatpercent" type="xs:float" minOccurs="1"/>
													<xs:element name="sumprice" type="xs:float" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Total price of the invoiceline</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="cost" type="xs:float" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Total cost of the invoiceline</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="discount" type="xs:float" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Percentage discount on the invoiceline</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="groupingvalue" minOccurs="0">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="employeename" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Name of employee adding the extra information</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="30"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="employeenumber" minOccurs="0">
														<xs:annotation>
															<xs:documentation>ID of employee adding the extra information</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="registrationinfo" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Extra information to the entry</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="255"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="registrationdate" type="xs:dateTime" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Date for when the extra information was entered</xs:documentation>
														</xs:annotation>
													</xs:element>													
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="documentlist" minOccurs="0">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="document" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="hsdocumentid" type="xs:integer">
														<xs:annotation>
															<xs:documentation>Unique ID in HS.</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="documentid" minOccurs="0">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="date" type="xs:dateTime">
														<xs:annotation>
															<xs:documentation>Date created</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="name">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="100"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="comment">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="256"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="documentdata" type="xs:base64Binary" minOccurs="0">
														<xs:annotation>
															<xs:appinfo>Binary representation of document</xs:appinfo>
															<xs:documentation>Used if created in Handyman</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="fileextension" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Used if created in Handyman. File exstension to be used if file is not stored in backoffice database</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="10"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="groupingvalue" minOccurs="0">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="description">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="descriptionline" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="itemno" minOccurs="1">
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="20"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="text" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Length can vary based on settings in Handyman</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="100"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="servicefeequipmentlist" minOccurs="0">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="servicefeequipment" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="equipmentid" minOccurs="1">
														<xs:annotation>
															<xs:documentation>ID of the equipment to be invoiced</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="255"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="name" minOccurs="1">
														<xs:annotation>
															<xs:documentation>Name of the equipment to be invoiced</xs:documentation>
														</xs:annotation>
														<xs:simpleType>
															<xs:restriction base="xs:string">
																<xs:maxLength value="50"/>
															</xs:restriction>
														</xs:simpleType>
													</xs:element>
													<xs:element name="fromdate" type="xs:dateTime">
														<xs:annotation>
															<xs:documentation>The servicefee invoices is invoiced based on settings in the contract. FromDate is the first day of the invoiced period for this equipment</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="todate" type="xs:dateTime">
														<xs:annotation>
															<xs:documentation>The servicefee invoices is invoiced based on settings in the contract. ToDate is the last day of the invoiced period for this equipment</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="amount" type="xs:float">
														<xs:annotation>
															<xs:documentation>Amount to be invoiced</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="vat" type="xs:float">
														<xs:annotation>
															<xs:documentation>VAT of the invoiced amount </xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="vatpercent" type="xs:float">
														<xs:annotation>
															<xs:documentation/>
														</xs:annotation>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
