{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content} {$xajax}

{$layout.pagetitle}

{if $newinvoice} {/if} {$default_printpage = ConfigHelper::getConfig('invoices.default_printpage')} {$default_taxrate = ConfigHelper::getConfig('phpui.default_taxrate')} {if isset($customer.id)} {$customerid = $customer.id} {else} {$customerid = $invoice.customerid} {/if} {block name="invoicenew-header"}

{if isset($invoice.proformaid) && !empty($invoice.proformaid)} {/if}
{trans("Main Information:")}
{trans("Invoice number:")} {include file="invoice/invoicenumberplans.html" invoice=$invoice}
{trans("Settlement date:")} {if ConfigHelper::checkPrivilege("invoice_consent_date")} {if $invoice.cdatewarning} {/if} {else} {$invoice.cdate|date_format:"%Y/%m/%d"} {/if}
{trans("Sale date:")} {if ConfigHelper::checkPrivilege("invoice_sale_date")} {else} {$invoice.sdate|date_format:"%Y/%m/%d"} {/if}
{trans("Deadline:")}
{trans("Payment type:")}
{trans("Customer:")} {customerlist form="setcustomer" customers=$customers selected=$customerid selectname="customer" inputname="customerid" customOnChange="GetNumberPlans();customer_change();" select_id="ownerid_select" input_id="ownerid_input"}
{trans("Currency:")} {currency_selection selected=$invoice.currency elementname="invoice[currency]"}
{trans("Recipient address:")} {if $invoice.customerid && $invoice.recipient_address_id } {$selected_address_id = $invoice.recipient_address_id} {else} {$selected_address_id = null} {/if} {include file="customer/customeraddresses.html" id="customer_addresses" name="invoice[recipient_address_id]" trigger="address_id" selected_address_id=$selected_address_id preselection=false}
{trans("Comment:")}
{trans("Submit")}
{/block} {if $covenantlist}
{cycle values="light,lucid" print=false} {section name=covenantlist loop=$covenantlist} {/section}
{trans("Invoiceless liabilities:")}
{trans("Date:")} {trans("Name of product, commodity or service:")} {trans("Product ID:")} {trans("Amount:")} {trans("Unit:")} {trans("Net Value:")} {trans("Tax:")} {trans("Gross Value:")}  
{$covenantlist[covenantlist].time|date_format:"%Y/%m/%d"} {$covenantlist[covenantlist].comment} {moneyf($covenantlist[covenantlist].net, $covenantlist[covenantlist].currency)} {$covenantlist[covenantlist].tax} {moneyf($covenantlist[covenantlist].value, $covenantlist[covenantlist].currency)}
{trans("Add items")}
{/if} {include file="invoice/invoicecontents.html"} {/block}