- Wyszukiwanie

{$MOD.LBL_STOCK} | Dokument {html_options name=documentsSelected options=$documentList selected=$documentSelected} | Widok: {html_options name=viewSelected options=$viewList selected=$viewSelected} | Do magazynu {$MOD.LBL_CONTRACTOR}
Data od | Data do | Kategoria produktu

{if $viewSelected eq 'documents'}

{if $documentSelected eq 'EcmStockDocMoves'}
{elseif $documentSelected eq 'EcmStockDocIns'}
{elseif $documentSelected eq 'EcmStockDocOuts'}
{elseif $documentSelected eq 'EcmInvoiceOuts'}
{/if}
Numer dokumentu | Data | Magazyn docelowy | Dostawca | Odbiorca | Kontrahent | Opis dokumentu | Wartość | Magazyn
--- | --- | --- | --- | --- | --- | --- | --- | ---
{foreach from=$DATA.doc key="key" item="item" name=loop}
{if $documentSelected eq 'EcmStockDocMoves'}
{elseif $documentSelected eq 'EcmStockDocIns' or $documentSelected eq 'EcmStockDocOuts' or $documentSelected eq 'EcmInvoiceOuts' }
{/if}
{$item.numer} | {$item.data} | {$item.magazynIn} | {$item.accountNazwa} | {if $item.typ=='KS'} {if $item.otyp==0} Przychód {/if} {if $item.otyp==1} Rozchód {/if} {else} {$item.nazwa} {/if} | {assign var=suma value=$suma+$item.wartosc} {$item.wartosc|number_format:2:",":"."} | {$item.magazyn}
{/foreach}
{if $documentSelected eq 'EcmStockDocOuts'}
{/if}
Suma: | {$suma|number_format:2:",":"." } |  |

{elseif $viewSelected eq 'positions'}

{if $documentSelected eq 'EcmStockDocInsideIns'}
{/if}
Indeks | Nazwa | Jm | Ilość | Wartość | Koszt robocizny
--- | --- | --- | --- | --- | ---
{foreach from=$DATA.prod key="key" item="item" name=loop}
{if $documentSelected eq 'EcmStockDocInsideIns'}
{/if}
{$item.kod} | {$item.nazwa} | {$item.jm} | {assign var=sumaIlosci value=$sumaIlosci+$item.ilosc} {$item.ilosc|number_format:2:",":"."} | {assign var=suma value=$suma+$item.wartosc} {$item.wartosc|number_format:2:",":"."} | {assign var=robocizna value=$robocizna+$item.work_price} {$item.work_price|number_format:2:",":"."}
{/foreach}
{if $documentSelected eq 'EcmStockDocInsideIns'}
{/if}
Suma: | {$sumaIlosci|number_format:2:",":"." } | {$suma|number_format:2:",":"." } | {$robocizna|number_format:2:",":"." }

{/if} Strona w budowie :)