131 lines
4.3 KiB
Smarty
Executable File
131 lines
4.3 KiB
Smarty
Executable File
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<style>
|
|
{literal}
|
|
@page {
|
|
size: auto;
|
|
odd-header-name: html_Header;
|
|
}
|
|
|
|
#MainTable {
|
|
width: 100%;
|
|
font-size: 8pt;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
#MainTable .text-left {
|
|
text-align: left;
|
|
}
|
|
|
|
#MainTable .text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
#MainTable .border-bottom {
|
|
border-collapse: collapse;
|
|
border-bottom: 1px solid black;
|
|
}
|
|
|
|
#MainTable .border-top {
|
|
border-collapse: collapse;
|
|
border-top: 1px solid black;
|
|
}
|
|
|
|
{/literal}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<htmlpageheader name="Header">
|
|
<div style="text-align: left; font-weight: bold; font-size: 10pt;">
|
|
<table style="width: 100%">
|
|
<tr><td style="width: 50%">
|
|
<table>
|
|
<tr>
|
|
<td style="font-size: 12px; font-weight: bold">{$COMPANY_NAME}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-size: 12px; font-weight: bold">Data wydruku: {$CUR_DATE}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-size: 12px; font-weight: bold">Ruch magazynowy w okresie od {$DATE_FROM} do {$DATE_TO}</td>
|
|
</tr>
|
|
</table>
|
|
</td><td style="text-align: right; vertical-align: top; font-size: 8pt;">
|
|
Ustawienia raportu:<br>
|
|
Magazyn: {$S_STOCK}<br>
|
|
</td></tr>
|
|
</table>
|
|
</div>
|
|
</htmlpageheader>
|
|
<div>
|
|
{assign var=docCount value=$DOCUMENTS|@count}
|
|
Pierwsza linia - ilość, druga - wartość.
|
|
<table id="MainTable">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left border-top border-bottom" style="width: 8%;">Indeks</th>
|
|
<th class="text-right border-top border-bottom" style="width: 8%;">Stan początkowy</th>
|
|
<th class="text-right border-top border-bottom" style="width: 4%;">Rozchody</th>
|
|
<th class="text-right border-top border-bottom" style="width: 4%;">Przychody</th>
|
|
{if $SHOW_DETAILS=='checked'}
|
|
{foreach from=$DOCUMENTS item=i key=k }
|
|
{assign var=tmp value="_"|explode:$k}
|
|
{assign var=key value=$tmp[0]}
|
|
<th class="text-right border-top border-bottom">{$MOD_NAMES.$key}{if $tmp[1]=='0'}+{else}-{/if}</th>
|
|
{/foreach}
|
|
{/if}
|
|
<th class="text-right border-top border-bottom" style="width: 8%;">Stan końcowy</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$DATA item=row}
|
|
<tr>
|
|
<td class="text-left border-bottom">{$row.code}<br>{$row.name}</td>
|
|
<td class="text-right border-bottom">{$row.start_state|number_format:2:",":""}<br>{$row.start_value|number_format:2:",":"."}</td>
|
|
<td class="text-right border-bottom">{$row.in_state|number_format:2:",":""}<br>{$row.in_value|number_format:2:",":"."}</td>
|
|
<td class="text-right border-bottom">{$row.out_state|number_format:2:",":""}<br>{$row.out_value|number_format:2:",":"."}</td>
|
|
{if $SHOW_DETAILS=='checked'}
|
|
{foreach from=$row.op item=i key=k}
|
|
<td class="text-right border-bottom">{$i.qty|number_format:2:",":""}<br>{$i.value|number_format:2:",":"."}</td>
|
|
{/foreach}
|
|
{/if}
|
|
<td class="text-right border-bottom">{$row.end_state|number_format:2:",":""}<br>{$row.end_value|number_format:2:",":"."}</td>
|
|
</tr>
|
|
{if $SHOW_DETAILS=='checked'}
|
|
{foreach from=$row.doc_details item=doc_row}
|
|
<tr class="doc_{$row.id}" style="display: none;">
|
|
<td class="border-bottom"> </td>
|
|
<td class="border-bottom"> </td>
|
|
<td class="border-bottom"> </td>
|
|
{foreach from=$DOCUMENTS item=i key=k }
|
|
{assign var=key value=$k}
|
|
<td class="text-right border-top border-bottom">
|
|
{$doc_row.$key.parent_name}
|
|
</td>
|
|
{/foreach}
|
|
<td class="border-bottom"> </td>
|
|
<td class="border-bottom"> </td>
|
|
<td class="border-bottom"> </td>
|
|
</tr>
|
|
{/foreach}
|
|
{/if}
|
|
{/foreach}
|
|
<tr>
|
|
<td class="text-left border-bottom">Suma</td>
|
|
<td class="text-right border-bottom">{$sum.sp_qty|number_format:2:",":""}<br>{$sum.sp_val|number_format:2:",":"."}</td>
|
|
<td class="text-right border-bottom">{$sum.in_qty|number_format:2:",":""}<br>{$sum.in_val|number_format:2:",":"."}</td>
|
|
<td class="text-right border-bottom">{$sum.out_qty|number_format:2:",":""}<br>{$sum.out_val|number_format:2:",":"."}</td>
|
|
{if $SHOW_DETAILS=='checked'}
|
|
{foreach from=$DOCUMENTS item=i key=k }
|
|
{assign var=key value=$k}
|
|
<td class="text-right border-bottom">{$doc_sum.$key.qty|number_format:2:",":""}<br>{$doc_sum.$key.val|number_format:2:",":"."}</td>
|
|
{/foreach}
|
|
{/if}
|
|
<td class="text-right border-bottom">{$sum.sk_qty|number_format:2:",":""}<br>{$sum.sk_val|number_format:2:",":"."}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html> |