{include file="header.html"} {include file="calendar_js.html"}

{$layout.pagetitle}

{if $customer} {/if}
{t}Customer data:{/t}
{t}Invoice number:{/t} ({$_config.invoices.number_template|replace:"%N":$invoice.number|replace:"%Y":$invoice.year|replace:"%M":$invoice.month})
{t}First/last or Company name:{/t}
{t}Address:{/t}

{if $customer.nip}{t}TEN:{/t}
{elseif $customer.pesel}{t}SSN:{/t}
{/if} {if $customer.phone1}{t}Phone:{/t}{/if}
{$customer.username}
{$customer.address}
{$customer.zip} {$customer.city}
{if $customer.nip}{$customer.nip}
{elseif $customer.pesel}{$customer.pesel}
{/if} {if $customer.phone1}{$customer.phone1}{/if}
{t}Settlement date:{/t} {if $invoice.cdatewarning} {/if}
{t}Deadline:{/t} {if $invoice.cdate} ({$invoice.cdate+$invoice.paytime*86400|date_format:"%Y/%m/%d"}) {/if}
{t}Payment type (cash/transfer/etc):{/t}
{t}Customer:{/t} {t}or Customer ID:{/t}
{t}Submit{/t}

{*{counter print=false}*} {cycle values="#DFD5BD,#EBE4D6" print=false} {foreach from=$contents item=item} {foreachelse} {/foreach} {if $contents} {/if}
{t}No.{/t} {t}Name of product, commodity or service:{/t} {t}Product ID:{/t} {t}Amount:{/t}
{t}Unit:{/t}
{t}Net Price:{/t}
{t}Net Value:{/t}
{t}Tax:{/t} {t}Gross Price:{/t}
{t}Gross Value:{/t}
 
{counter}. {$item.name} {$item.pkwiu} {$item.count}
{$item.jm}
{$item.valuenetto|money_format}
{$item.s_valuenetto|money_format}
{if $item.taxvalue || $item.taxvalue=="0"} {$item.taxvalue|string_format:"%01.2f"}% {else} {t}tax-free{/t} {/if} {$item.valuebrutto|money_format}
{$item.s_valuebrutto|money_format}


{t}Invoice have no items. Use form below for items addition.{/t}


{t}Total:{/t} {sum array=$contents column=s_valuenetto string_format="%01.2f"}   {sum array=$contents column=s_valuebrutto string_format="%01.2f"}  
{counter}.
{t}Select{/t}
{t}Clear Contents{/t} {if !$customer} {elseif !$contents} {else} {/if} {t}Save & Print{/t}
{include file="footer.html"}