Files
crm.e5.pl/modules/EcmReports/tpls/detailContractors.tpl
2024-04-27 09:23:34 +02:00

30 lines
3.3 KiB
Smarty

<script type="text/javascript" src="modules/EcmReports/javascript/detailProducts.js"></script>
<table class="productsTable" class="tablesorter tablesorter-blue2" role="grid" >
<thead>
<tr class="tablesorter-headerRow" role="row">
<th width="30%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Kontrahent</th>
<th width="9%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="2" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Sprzedana ilość</th>
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Wartość sprzedaży</th>
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Średnia cena</th>
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="5" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Koszt</th>
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="6" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Marża</th>
</tr>
</thead>
<tbody aria-live="polite" aria-relevant="all">
{foreach from=$data item=ROW name=loop}
<tr style="background-color: #e6e6e6;" role="row">
<td class="oddListRowS1" style="text-align:left;">
<a target="new" href="index.php?module=Accounts&return_module=Accounts&action=DetailView&record={$ROW.id}">
{$ROW.name}
</a>
</td>
<td class="oddListRowS1" style="text-align:right;">{$ROW.ilosc|number_format:0:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;">{$ROW.netto|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;">{$ROW.srednia|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;">{$ROW.koszt|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;">{$ROW.marza|number_format:2:",":"."}%</td>
</tr>
{/foreach}
</tbody>
</table>