// Fixed #PSCFV-3845

This commit is contained in:
dMetzger
2012-08-31 08:49:15 +00:00
parent 10a814c162
commit 1829bd5c46
3 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -1083,8 +1083,8 @@ CREATE TABLE `PREFIX_orders` (
CREATE TABLE `PREFIX_order_detail_tax` (
`id_order_detail` int(11) NOT NULL,
`id_tax` int(11) NOT NULL,
`unit_amount` DECIMAL( 10,6 ) NOT NULL default '0.00',
`total_amount` DECIMAL( 10, 6 ) NOT NULL default '0.00'
`unit_amount` DECIMAL(16, 6) NOT NULL DEFAULT '0.00',
`total_amount` DECIMAL(16, 6) NOT NULL DEFAULT '0.00'
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
CREATE TABLE `PREFIX_order_invoice` (
+2 -2
View File
@@ -516,8 +516,8 @@ UPDATE `PREFIX_hook` SET `name` = 'actionAttributeSave' WHERE `name` = 'afterSav
UPDATE `PREFIX_hook` SET `name` = 'actionTaxManager' WHERE `name` = 'taxManager';
ALTER TABLE `PREFIX_order_detail_tax`
ADD `unit_amount` DECIMAL( 10, 6 ) NOT NULL AFTER `id_tax` ,
ADD `total_amount` DECIMAL( 10, 6 ) NOT NULL AFTER `unit_amount`;
ADD `unit_amount` DECIMAL(16, 6) NOT NULL AFTER `id_tax`,
ADD `total_amount` DECIMAL(16, 6) NOT NULL AFTER `unit_amount`;
ALTER TABLE `PREFIX_specific_price` ADD `id_product_attribute` INT UNSIGNED NOT NULL AFTER `id_product`;
+4
View File
@@ -0,0 +1,4 @@
SET NAMES 'utf8';
ALTER TABLE `PREFIX_order_detail_tax` CHANGE `unit_amount` `unit_amount` DECIMAL(16, 6) NOT NULL DEFAULT '0.000000';
ALTER TABLE `PREFIX_order_detail_tax` CHANGE `total_amount` `unit_amount` DECIMAL(16, 6) NOT NULL DEFAULT '0.000000';