{if $viewSelected eq 'documents'}
| Numer dokumentu |
Data |
{if $documentSelected eq 'EcmStockDocMoves'}
Magazyn docelowy |
{elseif $documentSelected eq 'EcmStockDocIns'}
Dostawca |
{elseif $documentSelected eq 'EcmStockDocOuts'}
Odbiorca |
{elseif $documentSelected eq 'EcmInvoiceOuts'}
Kontrahent |
{/if}
Opis dokumentu |
Wartość |
Magazyn |
{foreach from=$DATA.doc key="key" item="item" name=loop}
|
{$item.numer}
|
{$item.data}
|
{if $documentSelected eq 'EcmStockDocMoves'}
{$item.magazynIn} |
{elseif $documentSelected eq 'EcmStockDocIns' or $documentSelected eq 'EcmStockDocOuts' or $documentSelected eq 'EcmInvoiceOuts' }
{$item.accountNazwa} |
{/if}
{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}
| Suma: |
{$suma|number_format:2:",":"." } |
|
{if $documentSelected eq 'EcmStockDocOuts'}
|
{/if}
{elseif $viewSelected eq 'positions'}
| Indeks |
Nazwa |
Jm |
Ilość |
Wartość |
{if $documentSelected eq 'EcmStockDocInsideIns'}
Koszt robocizny |
{/if}
{foreach from=$DATA.prod key="key" item="item" name=loop}
|
{$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:",":"."}
|
{if $documentSelected eq 'EcmStockDocInsideIns'}
{assign var=robocizna value=$robocizna+$item.work_price}
{$item.work_price|number_format:2:",":"."}
|
{/if}
{/foreach}
| Suma: |
{$sumaIlosci|number_format:2:",":"." } |
{$suma|number_format:2:",":"." } |
{if $documentSelected eq 'EcmStockDocInsideIns'}
{$robocizna|number_format:2:",":"." } |
{/if}
{/if}
Strona w budowie :)