You may know that I've been seeking help recently with regards to displaying Subtotals with Tax inclusive --- in the backend and Invoice Print out from Admin.
I just need to know 2 things :
1) What file controls the backend -- Sales / Order / Totals Tab
2) What code to alter or add for Subtotals with Tax to be shown properly in the Order backend and the Invoice Printout.
Please help me!
Regards
The Geekz
Notes :
It should be :
Item : 107.00
Subtotal : 107.00
GST Inclusive : 7.00
Totals : 107.00
Currently :
1.5.2.1
Have checked the Display Prices with Tax in Settings.
Invoice --
Initially it works, unless I click the Update Totals in the Order Backend -- Total tab -- the Subtotal will become without TAX!
Order Backend --
Totally cannot..... its displaying Subtotal without Tax
** given, I already edited in 1.5.2.1's Controller : admin/controller/sale/order.php (1.5.4.1 already has these codes in the controllers)
Code: Select all
$this->data['products'][] = array(
'order_product_id' => $product['order_product_id'],
'product_id' => $product['product_id'],
'name' => $product['name'],
'model' => $product['model'],
'option' => $option_data,
'quantity' => $product['quantity'],
// Edited 'price' & 'total' (Start).
'price' => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']),
'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']),
// Edited 'price' & 'total' (End).
'href' => $this->url->link('catalog/product/update', 'token=' . $this->session->data['token'] . '&product_id=' . $product['product_id'], 'SSL')
);
Code: Select all
$product_data[] = array(
'name' => $product['name'],
'model' => $product['model'],
'option' => $option_data,
'quantity' => $product['quantity'],
// Edited 'price' & 'total' (Start).
'price' => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']),
'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value'])
// Edited 'price' & 'total' (End).
);
1.5.4.1
Totally cannot work in both Invoice and Order Backend.