omine Posted November 23, 2015 Share Posted November 23, 2015 On BackOffice, the order details display the taxes and prices different of PDF invoice. However, the total value is the same. See the attached file. No problem about the taxes or the total. The problem is about the discount. The customers always asking if the discount was correct. In this case, on attached image, the discount was 500, but the invoice display the discount with tax, 463. I can't understand why 500 turns 463. Is this a bug? To solve temporarily, and make the customers stop to complain about the discount,i just changed the PDF invoice: This is the original (invoice.total-tab.tpl) : {if $footer.product_discounts_tax_excl > 0} <tr> <td class="grey" width="70%"> {l s='Total Discounts' pdf='true'} </td> <td class="white" width="30%"> - {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl} </td> </tr> I just changed product_discounts_tax_excl to product_discounts_tax_incl Other file, This is the original (invoice.product-tab.tpl) : - {displayPrice currency=$order->id_currency price=$cart_rule.value_tax_excl} I changed to: - {displayPrice currency=$order->id_currency price=$cart_rule.value} Now, the PDF displays the discount without tax: But, if the customer calculate each value, the total does not match. Well.. after the changes i did, the customers complaints disappeared. The worry is only about if someday, some customer try to calculate each value one by one and find the issue.How to change to just display on PDF invoice as we can see on BackOffice? The easiest way to solve, is something like this: But if someone knows a better way to do, i appreciate.Thank you. Link to comment Share on other sites More sharing options...
tuk66 Posted November 23, 2015 Share Posted November 23, 2015 What is your version? Invoices changes almost in every second version? This problem is about the discount and a way how the order items are calculated. A solution could be to use a 3rd party module for evading the original invoices - http://www.presta-addons.com/en/modules/3-pdf-extensions.html Link to comment Share on other sites More sharing options...
omine Posted November 24, 2015 Author Share Posted November 24, 2015 I noticed the issue on PS 1.6.1.1 Few days ago i upgraded to PS 1.6.1.2, but the "problem" is the same. Not convenient no but a module to solve PS bug. That's a basic functionality.PrestaShop should provide us solution on next upgrades.This is not so urgent, so, i will wait Anyway, is very interesting the addon you recommended. Looks good. Link to comment Share on other sites More sharing options...
tuk66 Posted November 24, 2015 Share Posted November 24, 2015 (edited) That's a basic functionality. PrestaShop should provide us solution on next upgrades. I fully agree. Unfortunately, things aren't so simple. PrestaShop is software, quite complicated, and there are many people trying to add or fix features. The result is that every release has bugs and after fixing one, new ones will appear in the next release. It is life. Edit: One example. I recently found a bug in price calculation caused by a commit in February 2015. Still not fixed. What worse, nobody probably even knows it. Edited November 24, 2015 by tuk66 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts