[-] BO : Total tax doesn't appear on the invoice

This commit is contained in:
fBrignoli
2012-05-24 16:16:09 +00:00
parent 067721c6e7
commit bc49cd5f2e
+8 -2
View File
@@ -116,12 +116,18 @@ function migrate_orders()
$order['total_discounts_tax_incl'] = (float)$order['total_discounts']; $order['total_discounts_tax_incl'] = (float)$order['total_discounts'];
$order['total_discounts_tax_excl'] = (float)$total_discount_tax_excl; $order['total_discounts_tax_excl'] = (float)$total_discount_tax_excl;
$order['total_paid_tax_incl'] = (float)$order['total_paid'];
$order['total_paid_tax_excl'] = (float)$order['total_paid'];
$order['total_shipping_tax_incl'] = (float)$order['total_shipping']; $order['total_shipping_tax_incl'] = (float)$order['total_shipping'];
$order['total_shipping_tax_excl'] = (float)($order['total_shipping'] / $carrier_tax_rate); $order['total_shipping_tax_excl'] = (float)($order['total_shipping'] / $carrier_tax_rate);
$shipping_taxes = $order['total_shipping_tax_incl'] - $order['total_shipping_tax_excl'];
$order['total_wrapping_tax_incl'] = (float)$order['total_wrapping']; $order['total_wrapping_tax_incl'] = (float)$order['total_wrapping'];
$order['total_wrapping_tax_excl'] = ((float)$order['total_wrapping'] / $wrapping_tax_rate); $order['total_wrapping_tax_excl'] = ((float)$order['total_wrapping'] / $wrapping_tax_rate);
$wrapping_taxes = $order['total_wrapping_tax_incl'] - $order['total_wrapping_tax_excl'];
$product_taxes = $order['total_products_wt'] - $order['total_products'];
$order['total_paid_tax_incl'] = (float)$order['total_paid'];
$order['total_paid_tax_excl'] = (float)$order['total_paid'] - $shipping_taxes - $wrapping_taxes - $product_taxes;
// protect text and varchar fields // protect text and varchar fields
$order['gift_message'] = Db::getInstance()->escape($order['gift_message']); $order['gift_message'] = Db::getInstance()->escape($order['gift_message']);
$order['payment'] = Db::getInstance()->escape($order['payment']); $order['payment'] = Db::getInstance()->escape($order['payment']);