{include file="header.html"}

{$layout.pagetitle}

{include file="calendar_js.html"} {$default_printpage = get_conf('invoices.default_printpage')} {$default_taxrate = get_conf('phpui.default_taxrate')}
{trans("Main Information:")}
{trans("Settlement date:")} {if $invoice.cdatewarning} {/if}
{trans("Sale date:")}
{trans("Deadline:")}
{trans("Payment type (cash/transfer/etc):")}
{trans("Customer:")} {if $customers} {trans("or Customer ID:")} {/if} {trans("Search")} »»»
{trans("Submit")}
{if $customer}
{trans("Customer:")} {$customer.customername}  »  {$customer.address}   {$customer.zip} {$customer.city}  »  {if $customer.balance < 0}{/if}{$customer.balance|money_format}{if $customer.balance < 0}{/if}
{/if}
{cycle values="light,lucid" print=false} {foreach from=$contents item=item} {foreachelse} {/foreach} {if $contents} {/if} {if !$invoice.closed} {/if}
{trans("No.")} {trans("Name of product, commodity or service:")} {trans("Product ID:")} {trans("Amount:")}
{trans("Unit:")}
{trans("Discount:")} {trans("Net Price:")}
{trans("Net Value:")}
{trans("Tax:")} {trans("Gross Price:")}
{trans("Gross Value:")}
 
{counter}. {$item.name} {$item.prodid} {$item.count|string_format:"%.2f"}
{$item.jm}
{if $item.pdiscount != 0}{$item.pdiscount|string_format:"%.2f %%"}{else}{if $item.vdiscount != 0}{$item.vdiscount|money_format}{/if}{/if} {$item.valuenetto|money_format}
{$item.s_valuenetto|money_format}
{$item.tax} {$item.valuebrutto|money_format}
{$item.s_valuebrutto|money_format}
{if !$invoice.closed} {/if}

 

{trans("Invoice have no items. Use form below for items addition.")}

 

{trans("Total:")} {sum array=$contents column=s_valuenetto string_format="%01.2f"}   {sum array=$contents column=s_valuebrutto string_format="%01.2f"}  
{counter}.
{trans("original")} {trans("copy")} {trans("duplicate")}  {trans("Cancel")} {if !$customer} {trans("Save")} {trans("Save & Print")} {elseif !$contents} {trans("Save")} {trans("Save & Print")} {else} {trans("Save")} {trans("Save & Print")} {/if}
{include file="footer.html"}