<?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="297mm"
page-width="210mm"
margin-top="5mm"
margin-bottom="15mm"
margin-left="10mm"
margin-right="10mm">
<fo:region-body margin-top="5mm" margin-bottom="5mm"/>
<fo:region-before extent="5mm"/>
<fo:region-after extent="5mm"/>
</fo:simple-page-master>
</fo:layout-master-set>

<!-- starts actual layout -->
<fo:page-sequence master-reference="first">
                                                                                           
<fo:flow flow-name="xsl-region-body">

<fo:block font-family="Monotype Corsiva" text-align="center" white-space-collapse="false" border-top="1pt solid #000000" font-weight="bold" font-size="20pt" >%%titlu%%</fo:block>
<fo:block font-family="Monotype Corsiva" text-align="center" white-space-collapse="false" font-weight="bold" font-size="20pt" >Nr: %%nrFactura%% Data: %%data%%</fo:block>

<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="90mm"/>
<fo:table-column column-width="90mm"/>
<fo:table-body>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="1">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Emitent</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="1">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Beneficiar</fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">%%emitent%%</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">%%beneficiar%%</fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Adresa: %%adresa_emitent%%</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Adresa: %%adresa_beneficiar%%</fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="1"  border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Nr Reg Com: %%j_emitent%%</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="1"  border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Nr Reg Com: %%j_beneficiar%%</fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">CUI: %%cui_emitent%%</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">CUI: %%cui_beneficiar%%</fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="1"  border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">IBAN: %%cont_emitent%%</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="1"  border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">IBAN: %%cont_beneficiar%%</fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Banca: %%banca_emitent%%</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Banca: %%banca_beneficiar%%</fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="2" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">TVA: %%cota_tva%%</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false"> </fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="2">
        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false"> </fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="2">
	<fo:table table-layout="fixed" border-collapse="separate">
		<fo:table-column column-width="10mm"/> <!--nrCrt-->
		<fo:table-column column-width="75mm"/> <!--produs-->
		<fo:table-column column-width="20mm"/> <!--um-->
		<fo:table-column column-width="20mm"/> <!--cantitate-->
		<fo:table-column column-width="25mm"/> <!--ppu-->
		<fo:table-column column-width="30mm"/> <!--valoare-->
		<fo:table-body>
			<fo:table-row display-align="center" keep-with-next="always">
				<fo:table-cell number-columns-spanned="1">
					<fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Nr.</fo:block>
				</fo:table-cell>
				<fo:table-cell number-columns-spanned="1">
                        <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Produs</fo:block>
                </fo:table-cell>
				<fo:table-cell number-columns-spanned="1">
                    <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">UM</fo:block>
                </fo:table-cell>
				<fo:table-cell number-columns-spanned="1">
                    <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Cant</fo:block>
                </fo:table-cell>
				<fo:table-cell number-columns-spanned="1">
                    <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Pret</fo:block>
                </fo:table-cell>
				<fo:table-cell number-columns-spanned="1">
                    <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Valoare</fo:block>
                </fo:table-cell>
			</fo:table-row>

			%%products%%

			<fo:table-row display-align="center" keep-with-next="always">
		                <fo:table-cell number-columns-spanned="6"  border-width="0.02mm" border-style="solid">
		                    <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false"> </fo:block>
		                </fo:table-cell>
			</fo:table-row>

			<fo:table-row display-align="center" keep-with-next="always">
			    <fo:table-cell number-columns-spanned="4" number-rows-spanned="1"  border-width="0.02mm" border-style="solid">
			        <fo:table table-layout="fixed" border-collapse="separate">
		                <fo:table-column column-width="30mm"/>
		                <fo:table-column column-width="80mm"/>
		                <fo:table-body>
			                <fo:table-row display-align="center" keep-with-next="always">
				                <fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
					                <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Semnatura si stampila furnizor</fo:block>
				                </fo:table-cell>
				                <fo:table-cell number-columns-spanned="1" border-width="0.02mm" border-style="solid">
					                <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Delegat: ________________________</fo:block>
					                <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">CNP: ____________________________</fo:block>
					                <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">BI/CI ____ nr _______ elib ______</fo:block>
					                <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Transport ______ nr _____________</fo:block>
					                <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Data ___________ ora ____________</fo:block>
					                <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Semnaturile _____________________</fo:block>
				                </fo:table-cell>
		                            </fo:table-row>
	                        </fo:table-body>
	                    </fo:table>		    
			</fo:table-cell>
			<fo:table-cell number-columns-spanned="1"  border-width="0.02mm" border-style="solid">
				<fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Semnat primire</fo:block>
	                </fo:table-cell>
	                <fo:table-cell number-columns-spanned="1"  border-width="0.02mm" border-style="solid">
	                    <fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false">Total: %%total_general%%</fo:block>
	                </fo:table-cell>
		</fo:table-row>
	</fo:table-body>
	</fo:table>
	</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell number-columns-spanned="4">
	<fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false"> </fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row display-align="center" keep-with-next="always">
<fo:table-cell  number-columns-spanned="4">
	<fo:block font-family="Monotype Corsiva" text-align="start" white-space-collapse="false"  font-weight="bold" font-size="10pt"> </fo:block>
</fo:table-cell>
</fo:table-row>

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

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