{include file="header.html"}

{$layout.pagetitle}

{include file="calendar_js.html"}
{t}Main Information:{/t}
{t}Settlement date:{/t} {if $invoice.cdatewarning} {/if}
{t}Sale date:{/t}
{t}Deadline:{/t}
{t}Payment type (cash/transfer/etc):{/t}
{t}Customer:{/t} {if $customers} {t}or Customer ID:{/t} {/if} {t}Search{/t} »»»
{t}Submit{/t}
{if $customer}
{t}Customer:{/t} {$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}
{t}No.{/t} {t}Name of product, commodity or service:{/t} {t}Product ID:{/t} {t}Amount:{/t}
{t}Unit:{/t}
{t}Discount:{/t} {t}Net Price:{/t}
{t}Net Value:{/t}
{t}Tax:{/t} {t}Gross Price:{/t}
{t}Gross Value:{/t}
 
{counter}. {$item.name} {$item.prodid} {$item.count|string_format:"%.2f"}
{$item.jm}
{$item.discount|string_format:"%.2f"} % {$item.valuenetto|money_format}
{$item.s_valuenetto|money_format}
{$item.tax} {$item.valuebrutto|money_format}
{$item.s_valuebrutto|money_format}
{if !$invoice.closed} {/if}

 

{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}original{/t} {t}copy{/t} {t}duplicate{/t}  {t}Cancel{/t} {if !$customer} {t}Save{/t} {t}Save & Print{/t} {elseif !$contents} {t}Save{/t} {t}Save & Print{/t} {else} {t}Save{/t} {t}Save & Print{/t} {/if}
{include file="footer.html"}