===== Euro template ===== ==== Description ==== This is the default template modified to have the currency symbol after the amount, and the correct format numbers for Euros --> ie. 2.132,45 €. Moreover there is some alignment corrections in the table of products. \\ ==== Version tested against ==== 2008-03-09 ==== Developed by ==== Roy Guadalupe www.dedalos-01.net ==== Template ==== {$preference.pref_inv_wording} {$LANG.number_short}: {$invoice.id}
{$preference.pref_inv_heading}

{ if $invoice.custom_field1 != null} {/if} { if $invoice.custom_field2 != null} {/if} { if $invoice.custom_field3 != null} {/if} { if $invoice.custom_field4 != null} {/if}
{$preference.pref_inv_wording} {$LANG.summary}
{$preference.pref_inv_wording} {$LANG.number_short}: {$invoice.id}
{$preference.pref_inv_wording} {$LANG.date}: {$invoice.date}
{$customFieldLabels.invoice_cf1}: {$invoice.custom_field1}
{$customFieldLabels.invoice_cf2}: {$invoice.custom_field2}
{$customFieldLabels.invoice_cf3}: {$invoice.custom_field3}
{$customFieldLabels.invoice_cf4}: {$invoice.custom_field4}
{$LANG.total}: {$invoice.total|number_format:2:",":"."}  {$preference.pref_currency_sign}
{$LANG.paid}: {$invoice.paid|number_format:2:",":"."} {$preference.pref_currency_sign}
{$LANG.owing}: {$invoice.owing|number_format:2:",":"."} {$preference.pref_currency_sign}
{if $biller.street_address != null} {/if} {if $biller.street_address2 != null } {if $biller.street_address == null } {/if} {if $biller.street_address != null } {/if} {/if} {merge_address field1=$biller.city field2=$biller.state field3=$biller.zip_code street1=$biller.street_address street2=$biller.street_address2 class1="tbl1-left" class2="tbl1-right" colspan="3"} {if $biller.country != null } {/if} {print_if_not_null label=$LANG.phone_short field=$biller.phone class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$LANG.fax field=$biller.fax class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$LANG.mobile_short field=$biller.mobile_phone class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$LANG.email field=$biller.email class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$customFieldLabels.biller_cf1 field=$biller.custom_field1 class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$customFieldLabels.biller_cf2 field=$biller.custom_field2 class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$customFieldLabels.biller_cf3 field=$biller.custom_field3 class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$customFieldLabels.biller_cf4 field=$biller.custom_field4 class1='tbl1-left' class2='tbl1-right' colspan="3"} {if $customer.attention != null } {/if} {if $customer.street_address != null } {/if} {if $customer.street_address2 != null} {if $customer.street_address == null} {/if} {if $customer.street_address != null} {/if} {/if} {merge_address field1=$customer.city field2=$customer.state field3=$customer.zip_code street1=$customer.street_address street2=$customer.street_addtess2 class1="tbl1-left" class2="tbl1-right" colspan="3"} {if $customer.country != null} {/if} {print_if_not_null label=$LANG.phone_short field=$customer.phone class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$LANG.fax field=$customer.fax class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$LANG.mobile_short field=$customer.mobile_phone class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$LANG.email field=$customer.email class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$customFieldLabels.customer_cf1 field=$customer.custom_field1 class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$customFieldLabels.customer_cf2 field=$customer.custom_field2 class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$customFieldLabels.customer_cf3 field=$customer.custom_field3 class1='tbl1-left' class2='tbl1-right' colspan="3"} {print_if_not_null label=$customFieldLabels.customer_cf4 field=$customer.custom_field4 class1='tbl1-left' class2='tbl1-right' colspan="3"}
{$LANG.biller}: {$biller.name}
{$LANG.address}: {$biller.street_address}
{$LANG.address}: {$biller.street_address2}
{$biller.street_address2}
{$biller.country}


{$LANG.customer}: {$customer.name}
{$LANG.attention_short}: {$customer.attention}
{$LANG.address}: {$customer.street_address}
{$LANG.address}: {$customer.street_address2}
{$customer.street_address2}
{$customer.country}

{if $invoice.type_id == 2 } {foreach from=$invoiceItems item=invoiceItem} {/foreach} {/if} {if $invoice.type_id == 3 } {foreach from=$invoiceItems item=invoiceItem} {/foreach} {/if} {if $invoice.type_id == 1 }

{$LANG.quantity_short} {$LANG.description} {$LANG.unit_price} {$LANG.gross_total} {$LANG.tax} {$LANG.total_uppercase}
{$invoiceItem.quantity|number_format:2:",":"."} {$invoiceItem.product.description} {$invoiceItem.unit_price|number_format:2:",":"."} {$preference.pref_currency_sign} {$invoiceItem.gross_total|number_format:2:",":"."} {$preference.pref_currency_sign} {$invoiceItem.tax_amount|number_format:2:",":"."} {$preference.pref_currency_sign} {$invoiceItem.total|number_format:2:",":"."} {$preference.pref_currency_sign}
{inv_itemised_cf label=$customFieldLabels.product_cf1 field=$invoiceItem.product.custom_field1} {do_tr number=1 class="blank-class"} {inv_itemised_cf label=$customFieldLabels.product_cf2 field=$invoiceItem.product.custom_field2} {do_tr number=2 class="blank-class"} {inv_itemised_cf label=$customFieldLabels.product_cf3 field=$invoiceItem.product.custom_field3} {do_tr number=3 class="blank-class"} {inv_itemised_cf label=$customFieldLabels.product_cf4 field=$invoiceItem.product.custom_field4} {do_tr number=4 class="blank-class"}
{$LANG.quantity_short} {$LANG.item} {$LANG.unit_price} {$LANG.gross_total} {$LANG.tax} {$LANG.total_uppercase}
{$invoiceItem.quantity|number_format:2:",":"."} {$invoiceItem.product.description}
{inv_itemised_cf label=$customFieldLabels.product_cf1 field=$invoiceItem.product.custom_field1} {do_tr number=1 class="blank-class"} {inv_itemised_cf label=$customFieldLabels.product_cf2 field=$invoiceItem.product.custom_field2} {do_tr number=2 class="blank-class"} {inv_itemised_cf label=$customFieldLabels.product_cf3 field=$invoiceItem.product.custom_field3} {do_tr number=3 class="blank-class"} {inv_itemised_cf label=$customFieldLabels.product_cf4 field=$invoiceItem.product.custom_field4} {do_tr number=4 class="blank-class"}
{$LANG.description}: {$invoiceItem.description}
{$invoiceItem.unit_price|number_format:2:",":"."} {$preference.pref_currency_sign} {$invoiceItem.gross_total|number_format:2:",":"."} {$preference.pref_currency_sign} {$invoiceItem.tax_amount|number_format:2:",":"."} {$preference.pref_currency_sign} {$invoiceItem.total|number_format:2:",":"."} {$preference.pref_currency_sign}
{foreach from=$invoiceItems item= invoiceItem} {/foreach} {/if} {if ($invoice.type_id == 2 && $invoice.note != "") || ($invoice.type_id == 3 && $invoice.note != "" ) } {/if} {php} global $invoice; $this->assign('invoice_gross_total', $invoice[total] - $invoice[total_tax]); {/php} {if $invoice.type_id == 1} {else} {/if}
{$LANG.description}
{$invoiceItem.description}



{$LANG.notes}:
{$invoice.note}

{$LANG.gross_total} {$invoiceItems.0.gross_total|number_format:2:",":"."} {$preference.pref_currency_sign}{$invoice_gross_total|number_format:2:",":"."} {$preference.pref_currency_sign}
{$LANG.tax_total} {$invoice.total_tax|number_format:2:",":"."} {$preference.pref_currency_sign}

{$preference.pref_inv_wording} {$LANG.amount} {$invoice.total|number_format:2:",":"."} {$preference.pref_currency_sign}


{$preference.pref_inv_detail_heading}
{$preference.pref_inv_detail_line}
{$preference.pref_inv_payment_method}
{$preference.pref_inv_payment_line1_name} {$preference.pref_inv_payment_line1_value}
{$preference.pref_inv_payment_line2_name} {$preference.pref_inv_payment_line2_value}

{$biller.footer}
==== Preview ==== {{invoice14.gif|}} ~~DISCUSSION~~