// Replacement of getDiscounts method

This commit is contained in:
rGaillard committed 2011-11-04 16:52:39 +00:00
1 parent e7339938b5
commit 59301b4540
5 files changed
+6 -6

No files matched your search

+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)
{