{if $smarty.const.SESS_LOGGED == false} {$block->display("account:login")} {else} {if $SESS_LOGGED == "1" } { $method->exe("invoice","user_view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else} {literal} {/literal} {foreach from=$invoice item=invoice} {if $form_validation} { $block->display("core:alert_fields") } {/if} { if $invoice.billing_status == "0" } { $block->display("invoice:checkoutoptions") } {/if}
{* show discount details *} {if $invoice.discount_arr != '' && $invoice.discount_amt > 0} {/if} {assign var=cc_user value=true} {* show checkout/payment plugin details *} {if $invoice.checkout_plugin_id != '0'} {assign var=sql1 value=" AND id='"} {assign var=sql2 value="' "} {assign var=sql3 value=$invoice.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_view {/translate} { $invoice.id }
{translate module=invoice} field_date_orig {/translate} {translate module=invoice} field_date_last {/translate} {translate module=invoice} field_due_date {/translate}
{$list->date_time($invoice.date_orig)} {$list->date_time($invoice.date_last)} {$list->date($invoice.due_date)}
{translate module=invoice} field_process_status {/translate} {translate module=invoice} field_billing_status {/translate} {translate module=invoice} print_invoice {/translate}
{if $invoice.process_status == 1} {translate}true{/translate} {else} {translate}false{/translate} {/if} {if $invoice.balance == 0} {translate module=invoice} paid {/translate} {else} {$list->format_currency_num($invoice.balance,$invoice.actual_billed_currency_id)} {/if} E-mail User
{translate module=invoice} field_discount_amt {/translate} {assign var=discount_details value=$invoice.discount_popup} {$list->format_currency_num($invoice.discount_amt, $invoice.actual_billed_currency_id)}  
{translate module=invoice} field_tax_amt {/translate} {translate module=invoice} field_discount_amt {/translate} {translate module=invoice} field_tax_id {/translate}
{$list->format_currency_num($invoice.tax_amt, $invoice.actual_billed_currency_id)} {if $invoice.discount_amt > 0} {else}---{/if} {if $invoice.tax_amt > 0} {foreach from=$invoice.tax_arr item=taxz} {$taxz.description} - {$list->format_currency_num($taxz.amount, $invoice.actual_billed_currency_id)}
{/foreach} {else}---{/if}
{translate module=invoice} field_total_amt {/translate} {translate module=invoice} field_billed_amt {/translate}
{$list->format_currency_num($invoice.total_amt, $invoice.actual_billed_currency_id)} {$list->format_currency_num($invoice.billed_amt, $invoice.actual_billed_currency_id)}  
{translate module=invoice} products_ordered {/translate}
{foreach from=$cart item=cart}
{if $cart.item_type == "2"}
{if $cart.cart_type == "1"} {if $cart.host_type == "ns_transfer"} {/if} {if $cart.host_type == "ip"} {/if} {/if}
{$cart.domain_name|upper} . {$cart.domain_tld|upper}  
   {if $cart.sku == "DOMAIN-REGISTER"} {translate module=cart} register {/translate} {elseif $cart.sku == "DOMAIN-TRANSFER"} {translate module=cart} transfer {/translate} {elseif $cart.sku == "DOMAIN-PARK"} {translate module=cart} park {/translate} {elseif $cart.sku == "DOMAIN-RENEW"} {translate module=cart} renew {/translate} {/if}
{translate module=cart} base_price {/translate}
{$list->format_currency_num($cart.price_base, $invoice.actual_billed_currency_id)}
{if $cart.sku != 'DOMAIN-PARK'} {/if}
{elseif $cart.item_type == "3"}
{if $cart.cart_type == "1"} {if $cart.host_type == "ns_transfer"} {/if} {if $cart.host_type == "ip"} {/if} {/if}
{$cart.product_name} ( {$cart.sku} ) {if $cart.attribute_popup != ""} {/if}
   {translate module=cart} price_type_one {/translate}
{translate module=cart} base_price {/translate}
{$list->format_currency_num($cart.price_base, $invoice.actual_billed_currency_id)}
{translate module=cart} quantity {/translate} {$cart.quantity}
{else}
{if $invoice.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} {if $cart.price_type == "0"} {translate module=cart} price_type_one {/translate} {/if} {if $cart.price_type == "1"} {translate module=cart} price_type_recurr {/translate} {/if} {if $cart.price_type == "2"} {translate module=cart} price_type_trial {/translate} {/if} {/if}
   {if $cart.price_type == "1"} {$list->format_currency_num($cart.price_base, $invoice.actual_billed_currency_id)} {if $cart.recurring_schedule == "0" } {translate module=cart} recurr_week {/translate} {/if} {if $cart.recurring_schedule == "1" } {translate module=cart} recurr_month {/translate} {/if} {if $cart.recurring_schedule == "2" } {translate module=cart} recurr_quarter {/translate} {/if} {if $cart.recurring_schedule == "3" } {translate module=cart} recurr_semianual {/translate} {/if} {if $cart.recurring_schedule == "4" } {translate module=cart} recurr_anual {/translate} {/if} {if $cart.recurring_schedule == "5" } {translate module=cart} recurr_twoyear {/translate} {/if} {if $cart.recurring_schedule == "6" } {translate module=cart} recurr_threeyear {/translate} {/if}    +   {$list->format_currency_num($cart.price_setup, $invoice.actual_billed_currency_id)} {translate module=cart} setup {/translate} {/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}
{translate module=cart} base_price {/translate}
{$list->format_currency_num($cart.price_base, $invoice.actual_billed_currency_id)}
{translate module=cart} setup_price {/translate}
{$list->format_currency_num($cart.price_setup, $invoice.actual_billed_currency_id)}
{translate module=cart} quantity {/translate} {$cart.quantity}
{/if} {/foreach}
{/foreach} {/if} {else} { $block->display("account:login") } {/if} { $method->exe("invoice","custom_tracking") } {/if}