<?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="Invoice.xsd" workingxmlfile="Invoice.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" update="VAT">
																						<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)" update="PriceGross">
																						<styles background-color="#ffff57"/>
																						<format basic-type="xsd" string="##0.00" datatype="decimal"/>
																					</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>
									<newline/>
									<tgrid>
										<properties border="0" cellpadding="5" width="100%"/>
										<styles border-style="none" border-width="0px" font-size="11pt"/>
										<children>
											<tgridbody-cols>
												<children>
													<tgridcol>
														<properties width="200"/>
													</tgridcol>
													<tgridcol>
														<properties width="115"/>
													</tgridcol>
													<tgridcol>
														<properties width="200"/>
													</tgridcol>
												</children>
											</tgridbody-cols>
											<tgridbody-rows>
												<children>
													<tgridrow>
														<styles vertical-align="top"/>
														<children>
															<tgridcell>
																<children>
																	<text fixtext="Price Total:">
																		<styles background-color="transparent" color="#004080" font-family="Arial" font-size="11pt" font-weight="bold"/>
																	</text>
																</children>
															</tgridcell>
															<tgridcell>
																<children>
																	<text fixtext=" € ">
																		<styles background-color="transparent" color="#004080" font-family="Arial" font-size="11pt" font-weight="bold"/>
																	</text>
																	<autocalc xpath="sum(Order/Product/PriceGross)" update="PriceTotal">
																		<styles background-color="#ffff57" color="#004080" font-family="Courier" font-size="11pt" font-weight="bold"/>
																		<format basic-type="xsd" string="###,##0.00" datatype="decimal"/>
																	</autocalc>
																</children>
															</tgridcell>
															<tgridcell>
																<properties valign="top"/>
																<children>
																	<tgrid>
																		<properties border="0" width="100%"/>
																		<styles font-family="Arial" font-size="10pt" vertical-align="top"/>
																		<children>
																			<tgridbody-cols>
																				<children>
																					<tgridcol/>
																				</children>
																			</tgridbody-cols>
																			<tgridbody-rows>
																				<children>
																					<tgridrow>
																						<children>
																							<tgridcell>
																								<properties valign="top"/>
																								<children>
																									<text fixtext="Volume Discounts">
																										<styles color="#595959" font-weight="bold" text-decoration="underline"/>
																									</text>
																								</children>
																							</tgridcell>
																						</children>
																					</tgridrow>
																					<tgridrow>
																						<children>
																							<tgridcell>
																								<properties valign="top"/>
																								<children>
																									<text fixtext="Over € 100 = 05%"/>
																								</children>
																							</tgridcell>
																						</children>
																					</tgridrow>
																					<tgridrow>
																						<children>
																							<tgridcell>
																								<children>
																									<text fixtext="Over € 300 = 10%"/>
																								</children>
																							</tgridcell>
																						</children>
																					</tgridrow>
																					<tgridrow>
																						<children>
																							<tgridcell>
																								<children>
																									<text fixtext="Over € 600 = 12%"/>
																								</children>
																							</tgridcell>
																						</children>
																					</tgridrow>
																				</children>
																			</tgridbody-rows>
																		</children>
																	</tgrid>
																</children>
															</tgridcell>
														</children>
													</tgridrow>
													<tgridrow>
														<children>
															<tgridcell>
																<children>
																	<text fixtext="Less Volume Discount:">
																		<styles color="#004080" font-family="Arial" font-size="11pt" font-weight="bold"/>
																	</text>
																</children>
															</tgridcell>
															<tgridcell>
																<children>
																	<text fixtext=" € ">
																		<styles color="#004080" font-family="Arial" font-size="11pt" font-weight="bold"/>
																	</text>
																	<autocalc xpath="if (sum(Order/Product/PriceGross) le 100.00) then 0 
   else if (sum(Order/Product/PriceGross) gt 100 and sum(Order/Product/PriceGross) le 300.00) 
           then round-half-to-even(sum(Order/Product/PriceGross)*.05 , 2)
           else if (sum(Order/Product/PriceGross) gt 300 and sum(Order/Product/PriceGross) le 600.00) 
                   then round-half-to-even(sum(Order/Product/PriceGross)*.10, 2)
                   else if (sum(Order/Product/PriceGross) gt 600 ) 
                           then round-half-to-even(sum(Order/Product/PriceGross)*.12, 2)
                           else ()" update="DiscountAmount">
																		<styles background-color="#ffff57" color="#004080" font-family="Courier" font-size="11pt" font-weight="bold"/>
																		<format basic-type="xsd" string="###,##0.00" datatype="decimal"/>
																	</autocalc>
																</children>
															</tgridcell>
															<tgridcell joinabove="1"/>
														</children>
													</tgridrow>
													<tgridrow>
														<children>
															<tgridcell>
																<children>
																	<text fixtext="Bill Amount:">
																		<styles color="#004080" font-family="Arial" font-size="11pt" font-weight="bold"/>
																	</text>
																</children>
															</tgridcell>
															<tgridcell>
																<children>
																	<text fixtext=" € ">
																		<styles color="#004080" font-family="Arial" font-size="11pt" font-weight="bold"/>
																	</text>
																	<autocalc xpath="if (sum(Order/Product/PriceGross) le 100.00) then sum(Order/Product/PriceGross) 
   else if (sum(Order/Product/PriceGross) gt 100 and sum(Order/Product/PriceGross) le 300.00) 
           then round-half-to-even(sum(Order/Product/PriceGross)*.95, 2)
           else if (sum(Order/Product/PriceGross) gt 300 and sum(Order/Product/PriceGross) le 600.00) 
                   then round-half-to-even(sum(Order/Product/PriceGross)*.90, 2)
                   else if (sum(Order/Product/PriceGross) gt 600 ) 
                           then round-half-to-even(sum(Order/Product/PriceGross)*.88, 2)
                           else ()" update="BillAmount">
																		<styles background-color="#ffff57" color="#004080" font-family="Courier" font-size="11pt" font-weight="bold"/>
																		<format basic-type="xsd" string="###,##0.00" datatype="decimal"/>
																	</autocalc>
																</children>
															</tgridcell>
															<tgridcell joinabove="1"/>
														</children>
													</tgridrow>
												</children>
											</tgridbody-rows>
										</children>
									</tgrid>
									<newline/>
									<line>
										<properties color="#004080" size="2"/>
									</line>
								</children>
								<variables/>
							</template>
							<newline/>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts/>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
