init
This commit is contained in:
133
modules/EcmReports/tpls/ReportStockDocMovesPDF.html
Normal file
133
modules/EcmReports/tpls/ReportStockDocMovesPDF.html
Normal file
@@ -0,0 +1,133 @@
|
||||
|
||||
{if $viewSelected eq 'documents'}
|
||||
<table id="myTable" style="font-size: 8pt; width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Lp.</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt; width:10%">Numer dokumentu</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt; width:10%">Data</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">
|
||||
|
||||
{if $documentSelected eq 'EcmStockDocInsideOuts' or $documentSelected eq 'EcmStockDocInsideIns' or $documentSelected eq 'EcmStockDocCorrects'}
|
||||
Kartoteka materiałowa
|
||||
{elseif $documentSelected eq 'EcmStockDocMoves'}
|
||||
Magazyn docelowy
|
||||
{elseif $documentSelected eq 'EcmStockDocIns'}
|
||||
Dostawca
|
||||
{elseif $documentSelected eq 'EcmStockDocOuts'}
|
||||
Odbiorca
|
||||
{elseif $documentSelected eq 'EcmInvoiceOuts'}
|
||||
Kontrahent
|
||||
{/if}
|
||||
</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Opis dokumentu</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Wartość</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Magazyn</th>
|
||||
{if $documentSelected eq 'EcmStockDocOuts'}
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Kategoria</th>
|
||||
{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
{foreach from=$DATA.doc key="key" item="item" name=loop}
|
||||
<tr>
|
||||
<td>{assign var=pozycja value=$pozycja+1}{$pozycja}</td>
|
||||
<td>
|
||||
{$item.numer}
|
||||
</td>
|
||||
<td>
|
||||
{$item.data}
|
||||
</td>
|
||||
<td>
|
||||
{if $documentSelected eq 'EcmStockDocInsideOuts' or $documentSelected eq 'EcmStockDocInsideIns' or $documentSelected eq 'EcmStockDocCorrects'}
|
||||
{$item.kartoteka}
|
||||
{elseif $documentSelected eq 'EcmStockDocMoves'}
|
||||
{$item.magazynIn}
|
||||
{elseif $documentSelected eq 'EcmStockDocIns' or $documentSelected eq 'EcmStockDocOuts' or $documentSelected eq 'EcmInvoiceOuts' }
|
||||
{$item.accountNazwa}
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $item.typ=='KS'}
|
||||
{if $item.otyp==0}
|
||||
Przychód
|
||||
{/if}
|
||||
{if $item.otyp==1}
|
||||
Rozchód
|
||||
{/if}
|
||||
{else}
|
||||
{$item.nazwa}
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
<td style="text-align: right">
|
||||
{assign var=suma value=$suma+$item.wartosc}
|
||||
{$item.wartosc|number_format:2:",":"."}
|
||||
</td>
|
||||
<td style="text-align: left">
|
||||
{$item.magazyn}
|
||||
</td>
|
||||
{if $documentSelected eq 'EcmStockDocOuts'}
|
||||
<td style="text-align: left">
|
||||
{$item.doccategory}
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan='5' style="border-top: 1px solid black;text-align:left;">Suma:</th>
|
||||
<th style="border-top: 1px solid black;text-align:right;">{$suma|number_format:2:",":"." }</th>
|
||||
<th style="border-top: 1px solid black;"></th>
|
||||
{if $documentSelected eq 'EcmStockDocOuts'}
|
||||
<th style="border-top: 1px solid black;"></th>
|
||||
{/if}
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
{elseif $viewSelected eq 'positions'}
|
||||
<table id="myTable" style="font-size: 8pt; width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Lp.</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Indeks</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Nazwa</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Jm</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Ilość</th>
|
||||
<th style="border: 1px solid black; font-weight: bold; font-size: 8pt;">Wartość</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody aria-live="polite" aria-relevant="all">
|
||||
{foreach from=$DATA.prod key="key" item="item" name=loop}
|
||||
<tr>
|
||||
<td>{assign var=pozycja value=$pozycja+1}{$pozycja}</td>
|
||||
<td>
|
||||
{$item.kod}
|
||||
</td>
|
||||
<td>
|
||||
{$item.nazwa}
|
||||
</td>
|
||||
<td>
|
||||
{$item.jm}
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{assign var=sumaIlosci value=$sumaIlosci+$item.ilosc}
|
||||
{$item.ilosc|number_format:2:",":"."}
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{assign var=suma value=$suma+$item.wartosc}
|
||||
{$item.wartosc|number_format:2:",":"."}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan='4' style="border-top: 1px solid black;text-align:left;">Suma:</th>
|
||||
<th colspan='1' style="border-top: 1px solid black;text-align:right;">{$sumaIlosci|number_format:2:",":"." }</th>
|
||||
<th colspan='1' style="border-top: 1px solid black;text-align:right;">{$suma|number_format:2:",":"." }</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user