Jump to content

Nouvelle Facture Prestashop 1.6 Prix Des Produits En Ht Au Lieu De Ttc


Recommended Posts

  • 1 month later...

Il ya des champs ecotax et ecotax_tax_rate dans le tableau de ps_order_detail. Il ne devrait pas être un problème pour montrer écotaxe pour chaque élément de commande sur la facture.
Voici un extrait et un exemple à partir du module M4 Extensions PDF:

 

There are ecotax and ecotax_tax_rate fields in the ps_order_detail table. It shouldn't be a problem to show ecotax for every order item on the invoice.

Here is a snippet and an example from the M4 PDF Extensions module:

{if $order[orders].order_detail[detail].ecotax != 0}
    {displayPrice price=$order[orders].order_detail[detail].ecotax currency=$order[orders].id_currency}
{/if}

Invoice with ecotax.pdf

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 11 months later...
  • 5 months later...

Bonjour,

 

Pour avoir une facture affichant le TTC et non le HT, j'ai modifié le fichier "pdf > invoice.product-tab.tpl" :

 

​ligne 37 : <th class="product header-right small" width="{$layout.unit_price_tax_excl.width}%">{l s='Unit Price' pdf='true'} <br /> {l s='(Tax excl.)' pdf='true'}</th>

par : <th class="product header-right small" width="{$layout.unit_price_tax_excl.width}%">{l s='Unit Price' pdf='true'} <br /> {l s='(Tax incl.)' pdf='true'}</th>

 

ligne 39 : <th class="product header-right small" width="{$layout.total_tax_excl.width}%">{l s='Total' pdf='true'} <br /> {l s='(Tax excl.)' pdf='true'}</th>

par : <th class="product header-right small" width="{$layout.total_tax_excl.width}%">{l s='Total' pdf='true'} <br /> {l s='(Tax incl.)' pdf='true'}</th>

 

ligne 88 : {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl_including_ecotax}

par : {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_incl_including_ecotax}

 

ligne 98 : {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_excl_including_ecotax}

par : {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_incl_including_ecotax}

 

Si cela peut vous être utile.

Edited by perot (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...