
If I change back to show price include tax at front store again, the invoice will also become normal. I guess it is a bug of PrestaShop.
Here I found a way to fix the problem. After this fix, it displays correctly no matter you set to display price include tax or exclude tax.
Changed file: ./classes/PDF.php
Changed line: 791 (this is ver 1.3.1, line # may be different for other version)
Changes made: replace the same line with below line.
$priceBreakDown['shippingCostWithoutTax'] = ($carrierTax->rate AND $carrierTax->rate != '0.00' AND self::$order->total_shipping != '0.00' AND Tax::zoneHasTax(intval($carrier->id_tax), intval($id_zone))) ? (self::$order->total_shipping / (1 + ($carrierTax->rate / 100))) : self::$order->total_shipping;

1 comment:
Thank you! I had the same problem and the fix works perfect!
Post a Comment