Merge branch 'fix-pdf'

This commit is contained in:
Marion Muszynski 2017-10-27 16:30:33 +02:00
commit 1585057079

View File

@ -1231,8 +1231,9 @@ class PDFCore extends PDF_PageGroupCore
} }
$this->Cell($w[++$i], $lineSize, $productQuantity, 'BT', 0, 'C'); $this->Cell($w[++$i], $lineSize, $productQuantity, 'BT', 0, 'C');
if (!$delivery) if (!$delivery && isset($w[++$i])) {
$this->Cell($w[++$i], $lineSize, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice($final_price, self::$currency, true)), 'BT', 0, 'R'); $this->Cell($w[$i], $lineSize, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice($final_price, self::$currency, true)), 'BT', 0, 'R');
}
$this->Ln(); $this->Ln();
} }
} }