From c169844e88019de634f2cb1c7fedf347d2fc9a8e Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Fri, 2 Nov 2012 08:46:56 +0000 Subject: [PATCH] [-] BO : fixed bug #PSCFV-5321 - decreasing unit price impact in combinations not possible --- classes/Combination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Combination.php b/classes/Combination.php index 6cd056a7b..d7b955ca2 100644 --- a/classes/Combination.php +++ b/classes/Combination.php @@ -77,7 +77,7 @@ class CombinationCore extends ObjectModel 'price' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isNegativePrice', 'size' => 20), 'ecotax' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isPrice', 'size' => 20), 'weight' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isFloat'), - 'unit_price_impact' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isPrice', 'size' => 20), + 'unit_price_impact' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isNegativePrice', 'size' => 20), 'minimal_quantity' => array('type' => self::TYPE_INT, 'shop' => true, 'validate' => 'isUnsignedId', 'required' => true), 'default_on' => array('type' => self::TYPE_INT, 'shop' => true, 'validate' => 'isBool'), 'available_date' => array('type' => self::TYPE_DATE, 'shop' => true, 'validate' => 'isDateFormat'),