Hello,
% set transaction = object.get_portal_last_transaction()
Your order ${object.name} amounting in ${format_amount(object.amount_total, object.currency_id)}
% if object.state == 'sale' or (transaction and transaction.state in ('done', 'authorized')) :
has been confirmed.
Thank you for your trust!
% elif transaction and transaction.state == 'pending' :
is pending. It will be confirmed when the payment is received.
% if object.reference:
Your payment reference is ${object.reference}.
% endif
% endif
Do not hesitate to contact us if you have any questions.
% if object.website_id:
| Products |
|
Quantity |
% if object.user_id.has_group('account.group_show_line_subtotals_tax_excluded'):
VAT Excl.
% else
VAT Incl.
% endif
|
% for line in object.order_line:
% if not line.is_delivery and line.display_type in ['line_section', 'line_note']:
|
% if line.display_type == 'line_section':
${line.name}
% elif line.display_type == 'line_note':
${line.name}
% endif
|
% elif not line.is_delivery
|
${line.product_id.name} |
${line.product_uom_qty} |
% if object.user_id.has_group('account.group_show_line_subtotals_tax_excluded'):
${format_amount(line.price_reduce_taxexcl, object.currency_id)}
% else
${format_amount(line.price_reduce_taxinc, object.currency_id)}
% endif
|
% endif
% endfor
% if object.carrier_id:
|
Delivery: |
${format_amount(object.amount_delivery, object.currency_id)} |
|
SubTotal: |
${format_amount(object.amount_untaxed, object.currency_id)} |
% else:
|
SubTotal: |
${format_amount(object.amount_untaxed, object.currency_id)} |
% endif
|
Taxes: |
${format_amount(object.amount_tax, object.currency_id)} |
|
Total: |
${format_amount(object.amount_total, object.currency_id)} |
% if object.partner_invoice_id:
|
Bill to:
${object.partner_invoice_id.street or ''}
${object.partner_invoice_id.city or ''}
${object.partner_invoice_id.state_id.name or ''}
${object.partner_invoice_id.zip or ''}
${object.partner_invoice_id.country_id.name or ''}
|
|
Payment Method:
% if transaction.payment_token_id:
${transaction.payment_token_id.name}
% else:
${transaction.acquirer_id.name}
% endif
(${format_amount(transaction.amount, object.currency_id)})
|
% endif
% if object.partner_shipping_id and not object.only_services:
Ship to:
${object.partner_shipping_id.street or ''}
${object.partner_shipping_id.city or ''}
${object.partner_shipping_id.state_id.name or ''}
${object.partner_shipping_id.zip or ''}
${object.partner_shipping_id.country_id.name or ''}
|
% if object.carrier_id:
|
Shipping Method:
${object.carrier_id.name}
% if object.carrier_id.fixed_price == 0.0:
(Free)
% else:
(${format_amount(object.carrier_id.fixed_price, object.currency_id)})
% endif
|
% endif
% endif
% endif