Jump to content

Changing in PDF - Invoice [solved]


Recommended Posts

Hello Everyone

Once order was completed it generated the PDF - Invoice, It shows at last
1) TOTAL PRODUCT (tax excl.) = 1.23
2) TOTAL PRODUCTS (tax incl.) = 1.35
3) SHIPPING
4) Total with TAX
Basically my question is want to remove tax included or excluded. How can I do that ....anyone please. Urgent

Thanks

Masam

Link to comment
Share on other sites

Go to your pdf.php in directory classes.
Open it.
Search for these lines.

$pdf->Cell($width, 0, self::l('Total products (tax excl.)').' : ', 0, 0, 'R');
$totalProductsTe = self::$order->getTotalProductsWithoutTaxes((self::$orderSlip ? self::$order->products : false));
$pdf->Cell(0, 0, self::convertSign(Tools::displayPrice($totalProductsTe, self::$currency, true, false)), 0, 0, 'R');
$pdf->Ln(4);

$pdf->SetFont(self::fontname(), 'B', 8);
$width = 165;
$pdf->Cell($width, 0, self::l('Total products (tax incl.)').' : ', 0, 0, 'R');
$totalProductsTi = self::$order->getTotalProductsWithTaxes((self::$orderSlip ? self::$order->products : false));
$pdf->Cell(0, 0, self::convertSign(Tools::displayPrice($totalProductsTi, self::$currency, true, false)), 0, 0, 'R');
$pdf->Ln(4);

Just add " // " like these :

//$pdf->Cell($width, 0, self::l('Total products (tax excl.)').' : ', 0, 0, 'R');
//$pdf->Cell(0, 0, self::convertSign(Tools::displayPrice($totalProductsTe, self::$currency, true, false)), 0, 0, 'R');
//$pdf->Ln(4);

//$pdf->Cell($width, 0, self::l('Total products (tax incl.)').' : ', 0, 0, 'R');
//$pdf->Cell(0, 0, self::convertSign(Tools::displayPrice($totalProductsTi, self::$currency, true, false)), 0, 0, 'R');
//$pdf->Ln(4);

Link to comment
Share on other sites

×
×
  • Create New...