// Replacement of getDiscounts method

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9900 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2011-11-04 16:52:39 +00:00
parent 37a918a0bf
commit e2026d1cc3
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -892,7 +892,7 @@ class PDFCore extends PDF_PageGroupCore
}
}
if (!sizeof(self::$order->getDiscounts()) AND !$delivery)
if (!sizeof(self::$order->getCartRules()) AND !$delivery)
$this->Cell(array_sum($w), 0, '');
}
@@ -903,7 +903,7 @@ class PDFCore extends PDF_PageGroupCore
{
$w = array(90, 25, 15, 10, 25, 25);
$this->SetFont(self::fontname(), 'B', 7);
$discounts = self::$order->getDiscounts();
$discounts = self::$order->getCartRules();
foreach($discounts AS $discount)
{