{ $method->exe("invoice","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}
{translate module=invoice} title_view {/translate} { $invoice.id }
{translate module=invoice} title_items {/translate} | {translate module=invoice} title_billing {/translate} | {translate module=invoice} title_service {/translate} | {if $list->is_installed("affiliate") } | {translate module=invoice} title_affiliate {/translate} {/if} {translate module=invoice} title_memo {/translate}
{translate module=invoice} field_total_amt {/translate} {translate module=invoice} field_billing_status {/translate} {translate module=invoice} field_billed_amt {/translate}
  {$list->format_currency_num($invoice.total_amt, $invoice.billed_currency_id)}   {if $invoice.balance == 0} {translate module=invoice} paid {/translate} {else} {$list->format_currency_num($invoice.balance,$invoice.billed_currency_id)} ( {translate module=invoice} jump_reconcile {/translate} ) {/if}   {if $invoice.billed_amt > 0} {$list->format_currency_num($invoice.billed_amt,$invoice.billed_currency_id)} ( {translate module=invoice} jump_refund {/translate} ) {elseif $invoice.total_amt > 0} --- {/if}
{translate module=service} field_account_id {/translate} {translate module=invoice} field_due_date {/translate} {translate module=invoice} field_discount_amt {/translate}
  {html_select_account name="invoice_account_id" default=$invoice.account_id}   {$list->date($invoice.due_date)}   {if $invoice.discount_amt > 0} {else}---{/if}
{translate module=invoice} field_date_orig {/translate} {translate module=invoice} field_process_status {/translate} {translate module=invoice} field_tax_amt {/translate}
  {$list->date_time($invoice.date_orig)}   {if $invoice.process_status == 1} Yes ( {translate module=invoice} jump_void {/translate} ) {elseif $invoice.billing_status == 1} No ( {translate module=invoice} jump_approve {/translate} ) {else} {translate module=invoice} billing_pending {/translate} {/if}   {if $invoice.tax_amt > 0} {$list->format_currency_num($invoice.tax_amt, $invoice.billed_currency_id)} {else}---{/if}
{translate module=invoice} field_date_last {/translate} {translate module=invoice} field_print_status {/translate} {translate module=invoice} field_tax_id {/translate}
  {$list->date_time($invoice.date_last)}   {if $invoice.print_status == 1} {translate} true {/translate} {else} {translate} false {/translate} {/if} ( {translate module=invoice} jump_pdf {/translate} )   {if $invoice.tax_amt > 0} {foreach from=$invoice.tax_arr item=taxz} {$taxz.description} - {$list->format_currency_num($taxz.amount, $invoice.billed_currency_id)}
{/foreach} {else}---{/if}
{if $invoice.billing_status==0 || $invoice.refund_status==1 || $invoice.total_amt==0 } {/if}

{* 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_billing {/translate}
{translate module=invoice} field_notice_count {/translate}
{ $invoice.notice_count } Resend Invoice
{translate module=invoice} field_due_date {/translate} { $list->calender_view("invoice_due_date", $invoice.due_date, "form_field", $invoice.id) }
{translate module=invoice} field_notice_max {/translate} {translate module=invoice} field_notice_next_date {/translate} { $list->calender_view("invoice_notice_next_date", $invoice.notice_next_date, "form_field", $invoice.id) }
{translate module=invoice} field_grace_period {/translate} {translate module=invoice} field_suspend_billing {/translate} { $list->bool("invoice_suspend_billing", $invoice.suspend_billing, " onChange=\"submit()\"") }
{translate module=invoice}field_checkout_plugin_id{/translate} {$invoice.checkout_plugin} IP Address {$invoice.ip}

{translate module=invoice} title_affiliate {/translate}
{if $invoice.affiliate_id != ""} {assign var=affiliate_details value=$invoice.affiliate_popup} {translate module=invoice} field_affiliate_id {/translate} {else} {translate module=invoice} field_affiliate_id {/translate} {/if} {translate module=invoice} affiliate_commissions {/translate} {translate module=invoice} field_campaign_id {/translate}
{html_select_affiliate name="invoice_affiliate_id" default=$invoice.affiliate_id} {if $invoice.affiliate_commissions > 0} {$list->format_currency($invoice.affiliate_commissions, '')} {else} ---- {/if} {$list->menu("no", "invoice_campaign_id", "campaign", "name", $invoice.campaign_id, "\" onChange=\"submit()", all) }

{translate module=invoice} title_items {/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($cart.price_base, $invoice.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($cart.price_base, $invoice.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}   {if $invoice.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} {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($cart.price_base, $invoice.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($cart.price_setup, $invoice.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($cart.price_base, $invoice.billed_currency_id)}
{translate module=cart} setup_price {/translate}
{$list->format_currency($cart.price_setup, $invoice.billed_currency_id)}
{translate module=cart} quantity {/translate} {$cart.quantity}
{/if} {/foreach}
{/foreach} {/if}
{literal} {/literal}