Jump to content

Problem with PDF Invoice


Recommended Posts

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

×
×
  • Create New...