[-] FO : fixed bug #PSCFV-5236 - 2 issues with Customer::outstanding_allow_amount
This commit is contained in:
@@ -171,7 +171,7 @@ class CustomerCore extends ObjectModel
|
||||
'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'),
|
||||
'siret' => array('type' => self::TYPE_STRING, 'validate' => 'isSiret'),
|
||||
'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),
|
||||
'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),
|
||||
|
||||
@@ -551,7 +551,7 @@ CREATE TABLE `PREFIX_customer` (
|
||||
`newsletter_date_add` datetime default NULL,
|
||||
`optin` tinyint(1) unsigned NOT NULL default '0',
|
||||
`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',
|
||||
`max_payment_days` int(10) unsigned NOT NULL default '60',
|
||||
`secure_key` varchar(32) NOT NULL default '-1',
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
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:block_category_1521(); */;
|
||||
|
||||
/* PHP:block_category_1521(); */;
|
||||
Reference in New Issue
Block a user