<?xml version="1.0" encoding="UTF-8"?>
<structure version="14" html-doctype="HTML4 Transitional" compatibility-view="IE9" relativeto="*SPS" encodinghtml="ISO-8859-1" encodingrtf="UTF-8" encodingpdf="UTF-8" useimportschema="1" embed-images="1" pastemode="xml" enable-authentic-scripts="1" authentic-scripts-in-debug-mode-external="0" generated-file-location="DEFAULT">
	<parameters/>
	<schemasources>
		<namespaces/>
		<schemasources>
			<xsdschemasource name="XML" main="1" schemafile="SimpleInvoice.xsd" workingxmlfile="SimpleInvoice.xml"/>
		</schemasources>
	</schemasources>
	<modules/>
	<flags>
		<scripts/>
		<globalparts/>
		<designfragments/>
		<pagelayouts/>
		<xpath-functions/>
	</flags>
	<scripts>
		<script language="javascript"/>
	</scripts>
	<script-project>
		<Project version="2" app="AuthenticView"/>
	</script-project>
	<importedxslt/>
	<globalstyles/>
	<mainparts>
		<children>
			<globaltemplate subtype="main" match="/">
				<document-properties/>
				<children>
					<documentsection>
						<properties columncount="1" columngap="48px" headerfooterheight="variable" pagemultiplepages="0" pagenumberingformat="1" pagenumberingstartat="1" pagestart="next" paperheight="11in" papermarginbottom="0.79in" papermarginfooter="0.0in" papermarginheader="0.0in" papermarginleft="0.6in" papermarginright="0.6in" papermargintop="0.79in" paperwidth="8.5in"/>
					</documentsection>
					<template subtype="source" match="XML">
						<children>
							<template subtype="element" match="Invoice">
								<children>
									<newline/>
									<text fixtext="Invoice">
										<styles color="#004080" font-family="Arial" font-size="20pt" font-weight="bold"/>
									</text>
									<newline/>
									<line>
										<properties color="#004080" size="3"/>
									</line>
									<newline/>
									<tgrid>
										<properties border="0" cellpadding="0" cellspacing="0" width="100%"/>
										<children>
											<tgridbody-cols>
												<children>
													<tgridcol>
														<properties width="391"/>
													</tgridcol>
													<tgridcol>
														<properties width="406"/>
													</tgridcol>
												</children>
											</tgridbody-cols>
											<tgridbody-rows>
												<children>
													<tgridrow>
														<children>
															<tgridcell>
																<children>
																	<text fixtext="Invoice Number: ">
																		<styles color="#004080" font-family="Arial" font-size="12pt" font-weight="bold"/>
																	</text>
																	<template subtype="element" match="InvoiceNumber">
																		<children>
																			<content>
																				<styles color="#004080" font-weight="bold"/>
																				<format basic-type="xsd" datatype="integer"/>
																			</content>
																		</children>
																		<variables/>
																	</template>
																</children>
															</tgridcell>
															<tgridcell>
																<children>
																	<text fixtext="Invoice Date:">
																		<styles color="#004080" font-family="Arial" font-size="12pt" font-weight="bold"/>
																	</text>
																	<text fixtext=" ">
																		<styles font-family="Arial" font-size="10pt" font-weight="bold"/>
																	</text>
																	<template subtype="element" match="InvoiceDate">
																		<children>
																			<content>
																				<styles color="#004080" font-weight="bold"/>
																				<format basic-type="xsd" datatype="date"/>
																			</content>
																		</children>
																		<variables/>
																	</template>
																</children>
															</tgridcell>
														</children>
													</tgridrow>
												</children>
											</tgridbody-rows>
										</children>
									</tgrid>
									<newline/>
									<text fixtext="Customer Name:">
										<styles color="#004080" font-family="Arial" font-size="12pt" font-weight="bold"/>
									</text>
									<text fixtext=" ">
										<styles font-family="Arial" font-size="12pt" font-weight="bold"/>
									</text>
									<template subtype="element" match="CustomerName">
										<children>
											<content>
												<styles color="#004080" font-size="12pt" font-weight="bold"/>
												<format basic-type="xsd" datatype="string"/>
											</content>
										</children>
										<variables/>
									</template>
									<newline/>
									<newline/>
									<line>
										<properties color="#004080" size="2"/>
									</line>
									<template subtype="element" match="Order">
										<children>
											<template subtype="element" match="Product">
												<children>
													<newline/>
													<tgrid>
														<properties border="0" cellpadding="5" cellspacing="0" width="100%"/>
														<children>
															<tgridbody-cols>
																<children>
																	<tgridcol>
																		<properties width="196"/>
																	</tgridcol>
																	<tgridcol>
																		<properties width="300"/>
																	</tgridcol>
																</children>
															</tgridbody-cols>
															<tgridbody-rows>
																<children>
																	<tgridrow>
																		<children>
																			<tgridcell>
																				<children>
																					<text fixtext="Product  "/>
																					<autocalc xpath="count(preceding-sibling::Product)+1">
																						<styles background-color="#ffff57"/>
																					</autocalc>
																					<text fixtext=":"/>
																				</children>
																			</tgridcell>
																			<tgridcell>
																				<children>
																					<template subtype="element" match="ProductName">
																						<children>
																							<content>
																								<format basic-type="xsd" datatype="string"/>
																							</content>
																						</children>
																						<variables/>
																					</template>
																				</children>
																			</tgridcell>
																		</children>
																	</tgridrow>
																	<tgridrow>
																		<children>
																			<tgridcell>
																				<children>
																					<text fixtext="Net price:"/>
																				</children>
																			</tgridcell>
																			<tgridcell>
																				<children>
																					<text fixtext="€ "/>
																					<template subtype="element" match="PriceNet">
																						<children>
																							<content>
																								<format basic-type="xsd" datatype="decimal"/>
																							</content>
																						</children>
																						<variables/>
																					</template>
																				</children>
																			</tgridcell>
																		</children>
																	</tgridrow>
																	<tgridrow>
																		<children>
																			<tgridcell>
																				<children>
																					<text fixtext="Category:"/>
																				</children>
																			</tgridcell>
																			<tgridcell>
																				<children>
																					<template subtype="element" match="Category">
																						<children>
																							<combobox xpath="/Invoice/Categories/Category">
																								<children>
																									<content>
																										<format basic-type="xsd" datatype="string"/>
																									</content>
																								</children>
																							</combobox>
																						</children>
																						<variables/>
																					</template>
																				</children>
																			</tgridcell>
																		</children>
																	</tgridrow>
																	<tgridrow>
																		<children>
																			<tgridcell>
																				<children>
																					<text fixtext="VAT:"/>
																				</children>
																			</tgridcell>
																			<tgridcell>
																				<children>
																					<autocalc xpath="for $i in Category return /Invoice/Categories/Category[. = $i]/@rate">
																						<styles background-color="#ffff57"/>
																					</autocalc>
																					<text fixtext="%"/>
																				</children>
																			</tgridcell>
																		</children>
																	</tgridrow>
																	<tgridrow>
																		<children>
																			<tgridcell>
																				<children>
																					<text fixtext="Price including VAT:"/>
																				</children>
																			</tgridcell>
																			<tgridcell>
																				<children>
																					<text fixtext="€ "/>
																					<autocalc xpath="for $i in Category return round-half-to-even(PriceNet + (PriceNet *(/Invoice/Categories/Category[. = $i]/@rate) div 100), 2)">
																						<styles background-color="#ffff57"/>
																					</autocalc>
																				</children>
																			</tgridcell>
																		</children>
																	</tgridrow>
																</children>
															</tgridbody-rows>
														</children>
													</tgrid>
													<newline/>
													<condition>
														<children>
															<conditionbranch xpath="not(following::Product)">
																<children>
																	<line>
																		<properties color="#004080" size="2"/>
																	</line>
																</children>
															</conditionbranch>
															<conditionbranch xpath="following::Product">
																<children>
																	<line>
																		<properties color="#004080" size="1"/>
																	</line>
																</children>
															</conditionbranch>
														</children>
													</condition>
												</children>
												<variables/>
											</template>
										</children>
										<variables/>
									</template>
								</children>
								<variables/>
							</template>
							<newline/>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts/>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
