<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

	<!-- defines the layout master -->
	<fo:layout-master-set>
		<fo:simple-page-master master-name="first" page-height="21cm" page-width="29.7cm" margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm">
			<fo:region-body margin-top="1cm" margin-bottom="1cm" />
			<fo:region-before extent="1cm" />
			<fo:region-after extent="1cm" />
		</fo:simple-page-master>
	</fo:layout-master-set>

	<!-- starts actual layout -->
	<fo:page-sequence master-reference="first">

		<fo:flow flow-name="xsl-region-body">

			<!-- table start -->
			<fo:table table-layout="fixed" border-collapse="separate">
				<fo:table-column column-width="10mm" />
				<fo:table-column column-width="75mm" />
				<fo:table-column column-width="25mm" />
				<fo:table-column column-width="25mm" />
				<fo:table-column column-width="25mm" />
				<fo:table-column column-width="25mm" />
				<fo:table-column column-width="25mm" />
				<fo:table-column column-width="25mm" />
				<fo:table-column column-width="25mm" />

				<fo:table-body>
					<fo:table-row>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="6" display-align="center">
							<fo:block text-align="center" font-size="20pt" font-weight="bold" font-style="italic">Bon predare-transfer-restituire nr %%nrBon%% / %%data%%</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="3" display-align="center">
							<fo:block text-align="start">Societatea: %%societatea%%</fo:block>
							<fo:block text-align="start">Predator: %%predator%%</fo:block>
							<fo:block text-align="start">Primitor: %%primitor%%</fo:block>
							<fo:block text-align="start" white-space-collapse="false"> </fo:block>
						</fo:table-cell>

					</fo:table-row>

					<fo:table-row>
						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="9" display-align="center">
							<fo:block text-align="center" white-space-collapse="false"> </fo:block>
						</fo:table-cell>
					</fo:table-row>

					<fo:table-row>

						<fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="1" display-align="center">
							<fo:block text-align="center" font-weight="bold">Nr</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="1" display-align="center">
							<fo:block text-align="center" font-weight="bold">Denumirea</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="1" display-align="center">
							<fo:block text-align="center" font-weight="bold">Debitor</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="1" display-align="center">
							<fo:block text-align="center" font-weight="bold">Creditor</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="1" display-align="center">
							<fo:block text-align="center" font-weight="bold">Cod</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="solid" display-align="center">
							<fo:block text-align="center" font-weight="bold">UM</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="solid" display-align="center">
							<fo:block text-align="center" font-weight="bold">Cantitate</fo:block>
						</fo:table-cell>
						
						<fo:table-cell border-width="0.02mm" border-style="solid" display-align="center">
							<fo:block text-align="center" font-weight="bold">Pret</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="solid" display-align="center">
							<fo:block text-align="center" font-weight="bold">Valoare</fo:block>
						</fo:table-cell>
					
					</fo:table-row>
					
					%%entries%%

					<fo:table-row>
                                                <fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="7" display-align="center">
                                                        <fo:block text-align="start" font-weight="bold">Total valoare</fo:block>
                                                </fo:table-cell>

                                                <fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="2" display-align="center">
                                                        <fo:block text-align="start" font-weight="bold">%%valoare%%</fo:block>
                                                </fo:table-cell>
                                        </fo:table-row>
					
					<fo:table-row>
						<fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="2" display-align="center">
							<fo:block text-align="start" font-weight="bold">Semnatura gestionar</fo:block>
						</fo:table-cell>
						
						<fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="3" display-align="center">
							<fo:block text-align="start" font-weight="bold">Viza CTC</fo:block>
						</fo:table-cell>
						
						<fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="2" display-align="center">
							<fo:block text-align="start" font-weight="bold">Predator</fo:block>
						</fo:table-cell>
						
						<fo:table-cell border-width="0.02mm" border-style="solid" number-columns-spanned="2" display-align="center">
							<fo:block text-align="start" font-weight="bold">Primitor</fo:block>
						</fo:table-cell>
						
					</fo:table-row>

				</fo:table-body>
			</fo:table>
			<!-- table end -->

		</fo:flow>
	</fo:page-sequence>
</fo:root>
