{if $VAR.invoice_account_id == "" }
{translate module=invoice}title_add{/translate}
{ if $list->is_installed('affiliate') == 1 } {/if}
{translate module=invoice} field_account_id {/translate} {html_select_account name="invoice_account_id" default=$VAR.invoice_account_id}
{translate module=invoice} field_affiliate_id {/translate} {html_select_affiliate name="aid" default=$VAR.aid}
{else}
{translate module=invoice} title_add {/translate}
{translate module=invoice} field_account_id {/translate} {html_select_account name="invoice_account_id" default=$VAR.invoice_account_id}
{translate module=invoice} add_product {/translate} { $list->menu("no", "invoice_product_id", "product", "sku", "all", "\" onchange=\"showProduct(this.value)\"") }
{translate module=invoice} add_ad_hoc {/translate} | {if $list->is_installed('host_tld')} {translate module=invoice} add_domain {/translate} {/if} | {translate module=invoice} add_discount {/translate} | {translate module=invoice} add_view_items {/translate} | {translate module=invoice} add_finalize {/translate}
{literal}

{/literal} {/if}