[-] FO : #PSTEST-981 - Minimal quantity not setted correctly on combibination

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13931 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-03-07 15:13:30 +00:00
parent f31711fcab
commit 8faf31d00d
5 changed files with 9 additions and 5 deletions
+3
View File
@@ -44,6 +44,8 @@ class CombinationCore extends ObjectModel
public $price;
public $ecotax;
public $minimal_quantity = 1;
public $quantity;
@@ -69,6 +71,7 @@ class CombinationCore extends ObjectModel
'ecotax' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice', 'size' => 20),
'quantity' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'size' => 10),
'weight' => array('type' => self::TYPE_INT, 'validate' => 'isFloat'),
'minimal_quantity' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'default_on' => array('type' => self::TYPE_INT, 'validate' => 'isBool'),
'available_date' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
'reference' => array('type' => self::TYPE_STRING, 'size' => 32),