{assign var=meth value=':'|explode:$VAR._page} {$method->exe($meth.0,$meth.1)} {if ($method->result == false)} {$block->display('core:method_error')} {else} {if $form_validation} {$block->display('core:alert_fields')} {/if}
{osb f=tt} {$record.id}
{t}Items Purchased{/t} | {t}Billing Details{/t} | {t}Services{/t} {if $list->is_installed('affiliate')} | {t}Affiliate & Campaign Details{/t} {/if} | {t}Memos{/t}
{osb f=tf field=total_amt} {osb f=tf field=billing_status} {osb f=tf field=billed_amt}
 
{$list->format_currency_num($record.total_amt,$record.billed_currency_id)}
  {if $record.balance == 0} {t}Paid{/t} {else} {$list->format_currency_num($record.balance,$record.billed_currency_id)} ({t}Reconcile Invoice{/t}) {/if}   {if $record.billed_amt > 0} {$list->format_currency_num($record.billed_amt,$record.billed_currency_id)} ({t}Refund Invoice{/t}) {elseif $record.total_amt > 0} --- {/if}
{osb f=tf field=account_id} {osb f=tf field=due_date} {osb f=tf field=discount_amt}
  {osb f=html_select_account name='invoice_account_id' default=$record.account_id}   {$list->date($record.due_date)}   {if $record.discount_amt > 0} {else} --- {/if}
{osb f=tf field=date_orig} {osb f=tf field=process_status} {osb f=tf field=tax_amt}
  {$list->date_time($record.date_orig)}   {if $record.process_status == 1} Yes ({t}Void Invoice & Services{/t}) {elseif $record.billing_status == 1} No ({t}Approve Invoice & Services{/t}) {else} {t}Pending Billing{/t} {/if}   {if $record.tax_amt > 0} {$list->format_currency_num($record.tax_amt,$record.billed_currency_id)} {else} --- {/if}
{osb f=tf field=date_last} {osb f=tf field=print_status} {osb f=tf field=tax_id}
  {$list->date_time($record.date_last)}   {$list->bool('',$record.print_status)} ({t}Print Invoice{/t})   {if $record.tax_amt > 0} {foreach from=$record.tax_arr item=taxz} {$taxz.description} - {$list->format_currency_num($taxz.amount,$record.billed_currency_id)}
{/foreach} {else}---{/if}
{if $record.billing_status==0 || $record.refund_status==1 || $record.total_amt==0} {/if}

{* show checkout/payment plugin details *} {if $record.checkout_plugin_id != '0'} {assign var=sql1 value=" AND id='"} {assign var=sql2 value="' "} {assign var=sql3 value=$record.checkout_plugin_id} {assign var=sql value=$sql1$sql3$sql2} {if $list->smarty_array('checkout','checkout_plugin',$sql,'checkout')} {assign var=checkout_plugin value=$checkout[0].checkout_plugin} {assign var='ablock' value='checkout_plugin:plugin_inv_'} {assign var='blockfile' value="$ablock$checkout_plugin"} {$block->display($blockfile)} {/if} {/if}
{translate module=invoice}title_billing{/translate}
{osb f=tf field=notice_count} {$record.notice_count} Resend Invoice {osb f=tf field=due_date} {$list->calender_view('invoice_due_date',$record.due_date,'form_field')}
{osb f=tf field=notice_max} {osb f=tf field=notice_next_date} {$list->calender_view('invoice_notice_next_date',$record.notice_next_date,'form_field')}
{osb f=tf field=grace_period} {osb f=tf field=suspend_billing} {$list->bool('invoice_suspend_billing',$record.suspend_billing,'" onchange="submit()')}
{osb f=tf field=checkout_plugin_id} {$record.checkout_plugin} Terms {if $record.net_term_id} {foreach from=$record.termdates item=td} {/foreach}
{osb f=html_select name='net_term_id' table='net_term' field='name' method='net_term' default=$record.net_term_id}
{$list->date($td.date)} {$td.desc}
{else} Not Defined {/if}
IP Address {$record.ip}

{t}Affiliate & Campaign Details{/t}
{if $record.affiliate_id != ''} {assign var=affiliate_details value=$record.affiliate_popup} {osb f=tf field=affiliate_id} {else} {osb f=tf field=affiliate_id} {/if} {translate module=invoice}affiliate_commissions{/translate} {osb f=tf field=campaign_id}
{osb f=html_select_affiliate name='invoice_affiliate_id' default=$record.affiliate_id} {if $record.affiliate_commissions > 0} {$list->format_currency($record.affiliate_commissions,'')} {else} ---- {/if} {$list->menu('no','invoice_campaign_id','campaign','name',$record.campaign_id,'" onchange="submit()',true)}

{translate module=invoice}title_items{/translate}
{foreach from=$cart item=cart}
{if $cart.item_type=='2'}
{$cart.domain_name|upper}.{$cart.domain_tld|upper}
   
{if $cart.sku == 'DOMAIN-REGISTER'} {t}Register{/t} {elseif $cart.sku == 'DOMAIN-TRANSFER'} {t}Transfer{/t} {elseif $cart.sku == 'DOMAIN-PARK'} {t}Park{/t} {elseif $cart.sku == 'DOMAIN-RENEW'} {t}Renew{/t} {/if}
{translate module=cart}base_price{/translate}
{$list->format_currency($cart.price_base,$record.billed_currency_id)}
{if $cart.sku != 'DOMAIN-PARK'} {/if}
{elseif $cart.item_type == '3'}
{$cart.product_name}
{$cart.sku} {if $cart.attribute_popup != ''} {/if}
{t}One-time Charge{/t}
{t}Base Price{/t}
{$list->format_currency($cart.price_base,$record.billed_currency_id)}
{t}Quantity{/t} {$cart.quantity}
{else}
{if $record.type != '1' && $cart.service_id > 0} {/if} {if $cart.item_type == '1'} {if $cart.domain_type == 'ns_transfer'} {/if} {if $cart.domain_type == 'ip'} {/if} {/if}
{if $list->translate('product_translate','name','product_id',$cart.product_id,'translate_product')}{/if}
{$translate_product.name}
  {if $record.type == 1 || $cart.service_id > 0}{$cart.service_id} -{/if} {$cart.sku} {if $cart.domain_name != ''}({$cart.domain_name}. {$cart.domain_tld}){/if} {if $cart.attribute_popup != ''} {/if}
{if $cart.range != ''} {$cart.range} {else} {$list->menu_staticlist('pricetype','','',$cart.price_type,'','')} {/if}
{if $cart.price_type == '1'} {$list->format_currency($cart.price_base,$record.billed_currency_id)} {$list->menu_staticlist('recur_schedule','','',$cart.recurring_schedule,'','')} +  {$list->format_currency($cart.price_setup,$record.billed_currency_id)} {t}Setup{/t} {/if}
{translate module=cart service=$cart.service_id}service_upgrade{/translate}
{translate module=cart}host_type_domain{/translate} - {$cart.domain_name}. {$cart.domain_tld}
{translate module=cart}host_type_ip{/translate}
{t}Base Price{/t}
{$list->format_currency($cart.price_base,$record.billed_currency_id)}
{t}Setup Price{/t}
{$list->format_currency($cart.price_setup,$record.billed_currency_id)}
{t}Quantity{/t} {$cart.quantity}
{/if} {/foreach}
{include file='file:../core/view_post.tpl'}
{/if}