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

This commit is contained in:
mDeflotte
2012-03-07 15:13:30 +00:00
parent 776a40e47a
commit 83b3d0dd1c
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),