user_company; ?>
user_vat_id) { echo '
' . trans('vat_id_short') . ': ' . $invoice->user_vat_id . '
'; } if ($invoice->user_tax_code) { echo '
' . trans('tax_code_short') . ': ' . $invoice->user_tax_code . '
'; } if ($invoice->user_address_1) { echo '
' . $invoice->user_address_1 . '
'; } if ($invoice->user_address_2) { echo '
' . $invoice->user_address_2 . '
'; } if ($invoice->user_city && $invoice->user_zip) { echo '
' . $invoice->user_zip . ' ' . $invoice->user_city . '
'; } else { if ($invoice->user_city) { echo '
' . $invoice->user_city . '
'; } if ($invoice->user_zip) { echo '
' . $invoice->user_zip . '
'; } } if ($invoice->user_state) { echo '
' . $invoice->user_state . '
'; } if ($invoice->user_country) { echo '
' . get_country_name(trans('cldr'), $invoice->user_country) . '
'; } ?>
client_name; ?>
client_vat_id) { echo '
' . trans('vat_id_short') . ': ' . $invoice->client_vat_id . '
'; } if ($invoice->client_tax_code) { echo '
' . trans('tax_code_short') . ': ' . $invoice->client_tax_code . '
'; } if ($invoice->client_address_1) { echo '
' . $invoice->client_address_1 . '
'; } if ($invoice->client_address_2) { echo '
' . $invoice->client_address_2 . '
'; } if ($invoice->client_city && $invoice->client_zip) { echo '
' . $invoice->client_zip . ' ' . $invoice->client_city . '
'; } else { if ($invoice->client_city) { echo '
' . $invoice->client_city . '
'; } if ($invoice->client_zip) { echo '
' . $invoice->client_zip . '
'; } } if ($invoice->client_state) { echo '
' . $invoice->client_state . '
'; } if ($invoice->client_country) { echo '
' . get_country_name(trans('cldr'), $invoice->client_country) . '
'; } if ($invoice->client_phone) { echo '
' . trans('phone_abbr') . ': ' . $invoice->client_phone . '
'; } echo '
'; echo '
' . trans('yourorderref') . ': ' . $custom_fields['invoice']['UwBestelbon'] . '
'; ?>
invoice_date_created, true);} ?>
invoice_date_created, true); ?>
invoice_date_due, true); ?>
payment_method_name; ?>
creditinvoice_parent_id) //-- Creditnote instead of invoices do loookup of orig invoicenbr { $this->load->model('invoices/mdl_invoices'); $parentinvoice = $this->mdl_invoices ->where('ip_invoices.invoice_id', $invoice->creditinvoice_parent_id)->get()->row(); echo trans('credit_invoice') . ' ' . $invoice->invoice_number . "
"; echo trans('credit_invoice_for_invoice').' ' . $parentinvoice->invoice_number; } else {echo trans('invoice') . ' ' . $invoice->invoice_number;} ?>
load->model('tax_rates/mdl_tax_rates'); //$taxarray1 = $this->mdl_tax_rates->where('tax_rate_id', $item->item_tax_rate_id)->get()->row(); //$taxarray2[$item->item_tax_rate_id]->taxcode = $taxarray1->tax_rate_code; if (!isset($taxarray2[$item->item_tax_rate_id])) $taxarray2[$item->item_tax_rate_id]=array(); $taxarray2[$item->item_tax_rate_id]['taxdescr'] = $item->item_tax_rate_name; $taxarray2[$item->item_tax_rate_id]['taxperc'] = $item->item_tax_rate_percent; if (isset($taxarray2[$item->item_tax_rate_id]['netamount'])) $taxarray2[$item->item_tax_rate_id]['netamount'] += ($item->item_subtotal - $item->item_discount); else $taxarray2[$item->item_tax_rate_id]['netamount'] = ($item->item_subtotal - $item->item_discount); if (isset($taxarray2[$item->item_tax_rate_id]['taxamount'])) $taxarray2[$item->item_tax_rate_id]['taxamount'] += $item->item_tax_total; else $taxarray2[$item->item_tax_rate_id]['taxamount'] = $item->item_tax_total; ?> invoice_item_tax_total > 0) { ?>
item_name; ?> item_quantity); ?> item_price); ?> item_discount_amount); ?> item_tax_rate_percent > 0) or ($item->item_tax_rate_name == "BE00")) { echo format_amount($item->item_tax_rate_percent); } else { echo ' '; } ?> item_subtotal - $item->item_discount)); ?>
class="text-right"> invoice_item_subtotal); ?>
class="text-right"> invoice_item_tax_total); ?>
class="text-right"> invoice_tax_rate_name . ' (' . format_amount($invoice_tax_rate->invoice_tax_rate_percent) . '%)'; ?> invoice_tax_rate_amount); ?>
class="text-right"> invoice_total); ?>
class="text-right"> invoice_total * $custom_fields['invoice']['OtherCurrencyExchangeRate']), $custom_fields['invoice']['OtherCurrencySymbol']); ?>
class="text-right"> invoice_total + $custom_fields['invoice']['FinancieleKortingExclBTW']; echo format_currency($totalwithoutdiscount); ?>
class="text-right">
$value) { echo ""; // TaxTariff echo ""; // TaxNetTotal echo ""; // TaxPercent echo ""; // TaxAmount echo ""; echo ""; } ?>

"; echo "

" . $value['taxdescr'] . "

"; echo "
"; echo "

" . format_currency($value['netamount']) . "

"; echo "
"; if (($value['taxperc'] > 0) or ($value['taxdescr'] == "BE00")) {echo "

" . format_amount($value['taxperc']) . "

";} else {echo "

" . ' ' . "

";} echo "
"; echo "

" . format_currency($value['taxamount']) . "

"; echo "