[-] FO : fixed customer discounts #PSCFV-7479

This commit is contained in:
Damien Metzger
2013-02-04 11:53:06 +01:00
parent 2ab51816d4
commit 3cf9a1aa21
+2
View File
@@ -225,6 +225,8 @@ class CartRuleCore extends ObjectModel
cr.`id_customer` = '.(int)$id_customer.'
'.($includeGeneric ? 'OR cr.`id_customer` = 0' : '').'
)
AND cr.date_from < "'.date('Y-m-d H:i:s').'"
AND cr.date_to > "'.date('Y-m-d H:i:s').'"
'.($active ? 'AND cr.`active` = 1' : '').'
'.($inStock ? 'AND cr.`quantity` > 0' : ''));