Files
2025-05-12 15:46:37 +00:00

216 lines
4.7 KiB
Smarty
Executable File

<table style='width: 100%'>
<tr>
<td style='width: 50%'><img src="custom/themes/default/images/company_logo.png" width="{$COMPANY_LOGO_WIDTH}" height="{$COMPANY_LOGO_HEIGHT}"></td>
<td style='width: 50%; text-align: right; vertical-align: top'>{$current_date}</td>
</tr>
</table>
<table style='width: 100%'>
<tr>
<td style="width: 70%">
<table>
<tr>
<td>
<b>Nazwa produktu:</b>
</td>
<td style='font-size: 120%'>
{$product->name}
</td>
</tr>
<tr>
<td>
<b>Indeks produktu:</b>
</td>
<td style='font-size: 120%'>
{$product->code}
</td>
</tr>
<tr>
<td>
<b>J.M:</b>
</td>
<td style='font-size: 120%'>
{foreach from=$APP_LIST_STRINGS.ecmproducts_unit_dom key=klucz item=wartosc}
{if $klucz==$product->unit_id}
{$wartosc}
{/if}
{/foreach}
</td>
</tr>
</table>
</td>
<td style="width: 30%; text-align: right">
{if $product->product_picture != ''}
<img src='modules/EcmProducts/upload/images/{$product->product_picture}'>
{/if}
{if $product->packing_front_picture!= ''}
<img src='modules/EcmProducts/upload/images/{$product->packing_front_picture}'>
{/if}
</td>
</tr>
</table>
{if isset($componentList)}
<br>
Komponenty
<table class='positions' style="width: 100%">
<thead>
<tr>
<th style='{$thcss}'>
Lp.
</th>
<th style='{$thcss}'>
Indeks
</th>
<th style='{$thcss}'>
Nazwa
</th>
<th style='{$thcss}'>
j.m.
</th>
<th style='{$thcss}'>
Ilość
</th>
<th style='{$thcss}'>
Cena
</th>
<th style='{$thcss}'>
Wartość
</th>
</tr>
</thead>
<tbody>
{assign var=sumSignle value=0}
{assign var=sumTotal value=0}
{foreach from=$componentList key=key item=value}
{assign var=sumSignle value=$sumSignle+$value.price.Single}
{assign var=sumTotal value=$sumTotal+$value.price.Summary}
<tr>
<td style='{$tbodytd} text-align: center'>
{$key+1}
</td>
<td style='{$tbodytd}'>
{$value.code}
</td>
<td style='{$tbodytd}'>
{$value.name}
</td>
<td style='{$tbodytd} text-align: right'>
{foreach from=$APP_LIST_STRINGS.ecmproducts_unit_dom key=klucz item=wartosc}
{if $klucz==$value.unit_id}
{$wartosc}
{/if}
{/foreach}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.quantity|number_format:2:",":"."}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.price.Single|number_format:2:",":"."}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.price.Summary|number_format:2:",":"."}
</td>
</tr>
{/foreach}
</tbody>
<foot>
<tr>
<td colspan="5">
Suma
</td>
<td style='text-align: right'>
{$sumSignle|number_format:2:",":"."}
</td>
<td style='text-align: right'>
{$sumTotal|number_format:2:",":"."}
</td>
</tr>
</foot>
</table>
{/if}
{if $product->action_list!= '[]'}
<br>
Czynności
<table class="positions" style="width: 100%">
<thead style=''>
<tr>
<th style='{$thcss}'>
Lp.
</th>
<th style='{$thcss}'>
Indeks
</th>
<th style='{$thcss}'>
Nazwa
</th>
<th style='{$thcss}'>
j.m.
</th>
<th style='{$thcss}'>
Ilość
</th>
<th style='{$thcss}'>
Cena
</th>
<th style='{$thcss}'>
Wartość
</th>
</tr>
</thead>
<tbody>
{assign var=sumSignle value=0}
{assign var=sumTotal value=0}
{foreach from=$product->action_list key=key item=value}
{assign var=sumSignle value=$sumSignle+$value.price.Single}
{assign var=sumTotal value=$sumTotal+$value.price.Summary}
<tr>
<td style='{$tbodytd} text-align: center'>
{$key+1}
</td>
<td style='{$tbodytd}'>
{$value.indeks}
</td>
<td style='{$tbodytd}'>
{$value.name}
</td>
<td style='{$tbodytd} text-align: right'>
{foreach from=$APP_LIST_STRINGS.ecmproducts_unit_dom key=klucz item=wartosc}
{if $klucz==$value.unit_id}
{$wartosc}
{/if}
{/foreach}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.quantity|number_format:2:",":"."}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.price.Single|number_format:2:",":"."}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.price.Summary|number_format:2:",":"."}
</td>
</tr>
{/foreach}
</tbody>
<foot>
<tr>
<td colspan="5">
Suma
</td>
<td style='text-align: right'>
{$sumSignle|number_format:2:",":"."}
</td>
<td style='text-align: right'>
{$sumTotal|number_format:2:",":"."}
</td>
</tr>
</foot>
</table>
{/if}