Gipielle Posted April 15, 2015 Share Posted April 15, 2015 We got a problem with shipping costs and taxes with some invoces: We got 0€ of shipping costs instead of the right value and the shipping cost in the tax instead of 0€ If we export we have to make invoice without tax it seem prestashop don't read the shipping costs, and the tax is calculated by {displayPrice currency=$order->id_currency price=($order_invoice->total_paid_tax_incl - $order_invoice->total_paid_tax_excl)} In the backoffice is ok , Any suggestions ? this is the invoice.tpl _________________ {if $order_invoice->total_shipping_tax_incl > 0} <tr style="line-height:3px;"> <td style="text-align: right; font-weight: bold">{l s='Shipping Cost' pdf='true'}</td> <td style="width: 15%; text-align: right; font-weight: bold"> {if $tax_excluded_display} {displayPrice currency=$order->id_currency price=$order_invoice->total_shipping_tax_excl} {else} {displayPrice currency=$order->id_currency price=$order_invoice->total_shipping_tax_incl} {/if} </td> </tr> {/if} {if ($order_invoice->total_paid_tax_incl - $order_invoice->total_paid_tax_excl) > 0} <tr style="line-height:3px;"> <td style="text-align: right; font-weight: bold">{l s='Total Tax' pdf='true'} :</td> <td style="width: 15%; text-align: right; font-weight: bold;">{displayPrice currency=$order->id_currency price=($order_invoice->total_paid_tax_incl - $order_invoice->total_paid_tax_excl)}</td> </tr> Link to comment Share on other sites More sharing options...
tuk66 Posted April 16, 2015 Share Posted April 16, 2015 Check if amounts stored in ps_orders and ps_order_carrier tables are right. The root of this issue is perhaps there. Link to comment Share on other sites More sharing options...
Gipielle Posted April 16, 2015 Author Share Posted April 16, 2015 (edited) Yes, we solved in this way. But why the order was created with wrong data ? Edited April 16, 2015 by Gipielle (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted April 17, 2015 Share Posted April 17, 2015 Because PrestaShop, like any other software, is not bugs free. Unfortunately. Link to comment Share on other sites More sharing options...
Recommended Posts