[-] BO : partial use fixed for cart rules

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12762 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-01-27 15:56:57 +00:00
parent 3208810fe6
commit f1dece04f2
4 changed files with 28 additions and 8 deletions
+2
View File
@@ -36,6 +36,7 @@ class CartRuleCore extends ObjectModel
public $quantity = 1;
public $quantity_per_user = 1;
public $priority = 1;
public $partial_use = 1;
public $code;
public $minimum_amount;
public $minimum_amount_tax;
@@ -72,6 +73,7 @@ class CartRuleCore extends ObjectModel
'quantity' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
'quantity_per_user' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
'priority' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
'partial_use' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
'code' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml', 'size' => 254),
'minimum_amount' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'),
'minimum_amount_tax' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),