Bug #322

Miscalculation in order e-mail receipt

Added by Francesco Abeni about 1 year ago. Updated 11 months ago.

Status:Closed Start date:03/14/2011
Priority:Normal Due date:
Assignee:Francesco Abeni % Done:

100%

Category:- Spent time: -
Target version:1.1.9

Description

In e-mail receipt subtotal is always with tax even for users which are set to see prices excluding tax.
In ps_checkout.php these changes are needed:

In function email_receipt($order_id)

line 1857

from : $order_tax = $db->f("order_tax");
to : $order_tax = $db->f("order_tax") + $db->f("order_shipping_tax");

line 2011

from : $sub_total += ($dboi->f("product_quantity") * $dboi->f("product_final_price"));
to : $sub_total += ($dboi->f("product_quantity") * $dboi->f("product_item_price"));

History

Updated by Francesco Abeni about 1 year ago

  • Status changed from New to Resolved
  • Assignee set to Francesco Abeni
  • % Done changed from 0 to 80

Applied proposed changes to ps_checkout.php

Updated by Francesco Abeni 11 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 80 to 100

Also available in: Atom PDF