[-] BO : #PSCFV-731 : change type int by string for zipcode_from and zipcode_to

&& check this zip codes
 && display errors
 && normalize
This commit is contained in:
lLefevre
2012-05-10 15:50:44 +00:00
parent 11c7c83029
commit aff0019b48
8 changed files with 137 additions and 115 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ class TaxRuleCore extends ObjectModel
'id_tax_rules_group' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'id_country' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'id_state' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
'zipcode_from' => array('type' => self::TYPE_INT, 'validate' => 'isPostCode'),
'zipcode_to' => array('type' => self::TYPE_INT, 'validate' => 'isPostCode'),
'zipcode_from' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode'),
'zipcode_to' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode'),
'id_tax' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'behavior' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
'description' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),