[-] Installer : fixed warnings #PSCFV-3633

This commit is contained in:
dMetzger
2012-08-16 09:59:35 +00:00
parent f099171edb
commit a2266fa088
5 changed files with 18 additions and 10 deletions
+3 -3
View File
@@ -20,17 +20,17 @@ ALTER TABLE `PREFIX_tax_rule` CHANGE `zipcode_from` `zipcode_from` VARCHAR(12) N
UPDATE PREFIX_order_detail_tax odt
LEFT JOIN PREFIX_tax t ON (t.id_tax = odt.id_tax)
SET unit_amount = ROUND((t.rate / 100) * (
SET unit_amount = IFNULL(ROUND((t.rate / 100) * (
SELECT od.unit_price_tax_excl - ( o.total_discounts_tax_excl * ( od.unit_price_tax_excl / o.total_products ))
FROM PREFIX_order_detail od
LEFT JOIN PREFIX_orders o ON ( o.id_order = od.id_order)
WHERE odt.id_order_detail = od.id_order_detail
), 2);
), 2), 0);
UPDATE PREFIX_order_detail_tax odt
LEFT JOIN PREFIX_order_detail od ON (od.id_order_detail = odt.id_order_detail)
SET total_amount = odt.unit_amount * od.product_quantity;
SET total_amount = IFNULL(odt.unit_amount * od.product_quantity, 0);
/* PHP:add_missing_shop_column_pagenotfound(); */;