<style type="text/css">
{literal}
    table.report {

        width: 100%;

        border-spacing: 1px;

        font-family: 'Calibri';
        font-size: 8pt;
    }

    table.report thead tr th,
    table.report tbody tr td {
        border: 1px solid #CCCCCC;

        text-align: center;
    }

    table.report thead tr th {
        background: #ebebeb;
    }

    table.report tbody tr.odd {
        background: #f6f6f6;
    }

    table.report tbody tr.even {
        background: #ffffff;
    }
    {/literal}
</style>

	<table class="report" style="padding-top: 0px; margin-top:0px;width:100%;font-size:8pt;">
	       <thead>
                    <tr>
						<th>{$MOD.LBL_NUMBER_LP}</th>
                        <th>{$MOD.LBL_DOCUMENT_NO}<br>{$MOD.LBL_CREATE_LAB}</th>
						<th>{$MOD.LBL_TITLE}</th>
						<th>{$MOD.LBL_PARENT_NAME}</th>
						<th>{$MOD.LBL_AMOUNT_PLUS}</th>
						<th>{$MOD.LBL_AMOUNT_MINUS}</th>
                    </tr>
                </thead>
                <tbody>
               {foreach from=$DATA item=poz key=CATNAME name=loop}
               		{if $poz.type_id!=''}
                    <tr class="{$poz.class}">
						<td width="5%">{$poz.number}</td>
						<td width="15%" style="text-align:left;">
							<table class="report" style="padding-top: 0px; margin-top:0px;">
								<tr class="{$poz.class}">
									<td style="text-align:left;">{$poz.document_no}</td>
								</tr>
								<tr>
									<td style="text-align:left;">{$poz.date_entered|date_format:"%d.%m.%Y"}</td>
								</tr>
							</table>
						</td>
						<td width="22%" style="text-align:left;">{$poz.description}</td>
						<td width="24%" style="text-align:left;">{$poz.parent_name}</td>
						<td width="17%" style="text-align:right;">{if $poz.type_id==0} {$poz.amount|number_format:2:",":"."} {else} &nbsp;{/if}</td>
						<td width="17%" style="text-align:right;">{if $poz.type_id==1} {$poz.amount|number_format:2:",":"."} {else} &nbsp;{/if} 
						</td>
                    </tr>
                    {assign var="i" value=$poz.number}
                    {/if}
                {/foreach}
                {assign var="currow" value=$poz.number+1}
                		    <tr class="{if $currow%2}even{else}odd{/if}">
						<td width="45%" style="border: 0px; background: #fff;" colspan="2">&nbsp;</td>
						<td width="15%" style="border: 0px; background: #fff;"></td>
						<td width="15%" style="text-align:left;">{$MOD.LBL_VALUE}</td>
						<td width="15%" style="text-align:right;">{$DATA.in|number_format:2:",":"."}</td>
						<td width="20%" style="text-align:right;">{$DATA.out|number_format:2:",":"."}</td>
					
                    </tr>
                   {assign var="currow" value=$currow+1}
				   <tr class="{if $currow%2}even{else}odd{/if}">
						<td width="45%" style="border: 0px; background: #fff;" colspan="2">&nbsp;</td>
						<td width="15%" style="border: 0px; background: #fff;"></td>
						<td width="15%" style="text-align:left;">{$MOD.LBL_VALUE_BEFORE}:</td>
						<td width="15%" style="text-align:right;">{$CASH_BEFORE|number_format:2:",":"."}</td>
						<td width="20%" style="text-align:right;"></td>
						
                    </tr>
                   {assign var="currow" value=$currow+1}
				  <tr class="{if $currow%2}even{else}odd{/if}">
						<td width="45%" style="border: 0px; background: #fff;" colspan="2">&nbsp;</td>
						<td width="15%" style="border: 0px; background: #fff;"></td>
						<td width="15%" style="text-align:left;">{$MOD.LBL_VALUE_TOTAL}:</td>
						<td width="15%" style="text-align:right;">{$CASH_NOW|number_format:2:",":"."}</td>
						<td width="20%" style="text-align:right;"></td>
					
                    </tr>
                </tbody>
	</table>