<?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="40mm" />
				<fo:table-column column-width="40mm" />
				<fo:table-column column-width="75mm" />
				<fo:table-column column-width="40mm" />
				<fo:table-column column-width="40mm" />
				<fo:table-column column-width="30mm" />

				<fo:table-body>
					<fo:table-row>
						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="2" display-align="center">
							<fo:block text-align="center" font-weight="bold">%%data%%</fo:block>
						</fo:table-cell>
						
						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="1" display-align="center">
							<fo:block text-align="center" font-weight="bold">Cont casa : _____</fo:block>
						</fo:table-cell>

						<fo:table-cell border-width="0.02mm" border-style="none" number-columns-spanned="2" display-align="center">
							<fo:block text-align="center" font-size="20pt" font-weight="bold" font-style="italic">Registru de casa : %%casa%%</fo:block>
						</fo:table-cell>

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

					</fo:table-row>

					<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" 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="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="none" number-columns-spanned="1" display-align="center">
							<fo:block text-align="center" font-weight="bold">Act casa</fo:block>
						</fo:table-cell>

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

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

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

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

					</fo:table-row>

					<fo:table-row>

						<fo:table-cell border-width="0.02mm" border-style="solid" display-align="center" number-columns-spanned="4">
							<fo:block text-align="start" font-weight="bold" white-space-collapse="false"> Report / Sold ziua precedenta</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">%%soldIeri%%</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" white-space-collapse="false"> </fo:block>
							</fo:table-cell>
						
	                    <fo:table-cell border-width="0.02mm" border-style="solid" display-align="center" number-columns-spanned="1">
	                            <fo:block text-align="center" font-weight="bold"> </fo:block>
	                    </fo:table-cell>

					</fo:table-row>
					
					%%entries%%
					
                    <fo:table-row>
                    
                            <fo:table-cell border-width="0.02mm" border-style="solid" display-align="center" number-columns-spanned="4">
                                    <fo:block text-align="start" font-weight="bold" white-space-collapse="false"> TOTAL</fo:block>
                            </fo:table-cell>

                            <fo:table-cell border-width="0.02mm" border-style="solid" display-align="center" number-columns-spanned="1">
                                    <fo:block text-align="center" font-weight="bold">%%totalincasari%%</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">%%totalplati%%</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" 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" display-align="center" number-columns-spanned="4">
                                    <fo:block text-align="start" font-weight="bold" white-space-collapse="false"> De reportat</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">%%total%%</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" white-space-collapse="false"> </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" 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="7" 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" display-align="center" number-columns-spanned="3">
                                    <fo:block text-align="start" font-weight="bold" white-space-collapse="false"> Casier</fo:block>
                            </fo:table-cell>

                            <fo:table-cell border-width="0.02mm" border-style="solid" display-align="center" number-columns-spanned="4">
                                    <fo:block text-align="start" font-weight="bold" white-space-collapse="false"> Compartiment financiar contabil</fo:block>
                            </fo:table-cell>
                    </fo:table-row>
				</fo:table-body>
			</fo:table>
			<!-- table end -->

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