// Replacement of getDiscounts method

This commit is contained in:
rGaillard
2011-11-04 16:52:39 +00:00
parent e7339938b5
commit 59301b4540
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)
{