Jump to content

Pdf Invoice Displays Discount And Prices With Tax


Recommended Posts

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.

 

post-511789-0-73511800-1448276009_thumb.png

 

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:

post-511789-0-84355800-1448276392_thumb.png
 

 

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:

 

post-511789-0-75733100-1448276943_thumb.png

 

 

But if someone knows a better way to do, i appreciate.


Thank you.

 

 

Link to comment
Share on other sites

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

 

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 by tuk66 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...