{if $smarty.const.SESS_LOGGED == false} {$block->display('account:user_login')} {else} {assign var=meth value=':'|explode:$VAR._page} {* Since this page can also be rendered via a checkout plugin, we need to change the $meth.0/1 to be account/user_view *} {assign var=meth value=','|explode:'invoice,user_view'} {if $SESS_LOGGED == '1'} {$method->exe($meth.0,$meth.1)} {if ($method->result == false)} {$block->display('core:method_error')} {else} {include file='file:../core/user_view_pre.tpl'} {if $record.billing_status == '0'} {$block->display('invoice:checkoutoptions')} {/if} {if $record}
{* show discount details *} {if $record.discount_arr != '' && $record.discount_amt > 0} {/if} {* show checkout/payment plugin details *} {assign var=cc_user value=true} {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}
{osb f=tt} {$record.id}
{osb f=tf field=date_orig} {osb f=tf field=due_date} {osb f=tf field=total_amt}
{$list->date($record.date_orig)} {$list->date($record.due_date)} {$list->format_currency_num($record.total_amt,$record.actual_billed_currency_id)}
{osb f=tf field=billed_amt} {t}Print Invoice{/t} {osb f=tf field=billing_status}
{$list->format_currency_num($record.billed_amt,$record.actual_billed_currency_id)} Print {if $record.balance == 0} {t}Paid{/t} {else} {$list->format_currency_num($record.balance,$record.actual_billed_currency_id)} {/if}
{osb f=tf field=discount_amt} {assign var=discount_details value=$record.discount_popup} {$list->format_currency_num($record.discount_amt,$record.actual_billed_currency_id)}  
{osb f=tf field=tax_amt} {osb f=tf field=discount_amt}  
{$list->format_currency_num($record.tax_amt,$record.actual_billed_currency_id)} {if $record.discount_amt > 0} {else}---{/if}  

{t}Products Ordered{/t}
{foreach from=$cart item=cart}
{if $cart.item_type == '2'} {* include file='file:../cart/cart_table_type_2.tpl' disable=true *}
{$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}
{t}Base Price{/t}
{$list->format_currency($cart.price_base,$record.actual_billed_currency_id)}
{if $cart.sku != 'DOMAIN-PARK'} {/if}
{elseif $cart.item_type == '3'} {* include file='file:../cart/cart_table_type_3.tpl' disable=true *}
{$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} {* include file='file:../cart/cart_table_type_x.tpl' disable=true *}
{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}
({$cart.sku}) {if $cart.attribute_popup != ''} {/if}
{if $cart.range != ''} {$cart.range} {else} {$list->menu_staticlist('pricetype','','',$cart.price_type,'form_menu')} {/if}
{if $cart.price_type == "1"} {$list->format_currency_num($cart.price_base,$record.actual_billed_currency_id)} {$list->menu_staticlist('recur_schedule','','',$cart.recurring_schedule,'form_menu')} + {$list->format_currency_num($cart.price_setup,$record.actual_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}
{/if} {/if} {else} {$block->display('account:login')} {/if} {$method->exe('invoice','custom_tracking')} {/if}