[-] FO : fixed bug #PSCFV-5236 - 2 issues with Customer::outstanding_allow_amount

This commit is contained in:
vAugagneur committed 2012-11-05 15:32:06 +00:00
1 parent de7b2e0915
commit 7911cf02d1
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ class CustomerCore extends ObjectModel
'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'),
'siret' => array('type' => self::TYPE_STRING, 'validate' => 'isSiret'), 'siret' => array('type' => self::TYPE_STRING, 'validate' => 'isSiret'),
'ape' => array('type' => self::TYPE_STRING, 'validate' => 'isApe'), 'ape' => array('type' => self::TYPE_STRING, 'validate' => 'isApe'),
'outstanding_allow_amount' => array('type' => self::TYPE_INT, 'validate' => 'isFloat', 'copy_post' => false), 'outstanding_allow_amount' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat', 'copy_post' => false),
'show_public_prices' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'show_public_prices' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false),
'id_risk' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'copy_post' => false), 'id_risk' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'copy_post' => false),
'max_payment_days' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'copy_post' => false), 'max_payment_days' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'copy_post' => false),
+1 -1
View File
@@ -551,7 +551,7 @@ CREATE TABLE `PREFIX_customer` (
`newsletter_date_add` datetime default NULL, `newsletter_date_add` datetime default NULL,
`optin` tinyint(1) unsigned NOT NULL default '0', `optin` tinyint(1) unsigned NOT NULL default '0',
`website` varchar(128), `website` varchar(128),
`outstanding_allow_amount` DECIMAL( 10,6 ) NOT NULL default '0.00', `outstanding_allow_amount` DECIMAL( 20,6 ) NOT NULL default '0.00',
`show_public_prices` tinyint(1) unsigned NOT NULL default '0', `show_public_prices` tinyint(1) unsigned NOT NULL default '0',
`max_payment_days` int(10) unsigned NOT NULL default '60', `max_payment_days` int(10) unsigned NOT NULL default '60',
`secure_key` varchar(32) NOT NULL default '-1', `secure_key` varchar(32) NOT NULL default '-1',
+3
View File
@@ -1,4 +1,7 @@
SET NAMES 'utf8'; SET NAMES 'utf8';
ALTER TABLE `PREFIX_address` CHANGE `outstanding_allow_amount` `outstanding_allow_amount` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000';
/* PHP:blocknewsletter1530(); */; /* PHP:blocknewsletter1530(); */;
/* PHP:block_category_1521(); */; /* PHP:block_category_1521(); */;