bbajc Posted January 3, 2019 Share Posted January 3, 2019 Bonjour, je suis sous PS 1.6.18. J'ai modifier le tableau invoice.product-tab.tpl car étant auto-entrepreneur nous ne sommes pas soumis à la TVA, j'ai donc voulu supprimer la colonne "taux taxe" qui demeure affichée même quand les paramètres de la boutique sont sans taxe. J'ai donc mis en commentaire la ligne renvoyant à cette colonne. Je pensais que suite à cela, les 4 colonnes restantes allant se partager les 100% de la ligne, mais non, le tableau est "diminué" de cette colonne. Dans l'idéal j'aimerai que la colone product gagne la largeur de la colonne tax_code, mais je ne comprend pas comment ces % sont calculés pour donner la valeur width. J'ai tenté de rentrer une valeur numérique mais cela ne fonctionne pas. Merci de votre aide Et Bonne année !!! Béa <thead> <tr> <th class="product header small" width="{$layout.reference.width}%">{l s='Reference' pdf='true'}</th> <th class="product header small" width="{$layout.product.width}%">{l s='Product' pdf='true'}</th> {*<th class="product header small" width="{$layout.tax_code.width}%">{l s='Tax Rate' pdf='true'}</th>*} {if isset($layout.before_discount)} <th class="product header small" width="{$layout.unit_price_tax_excl.width}%">{l s='Base price' pdf='true'} <br /> {l s='(Tax excl.)' pdf='true'}</th> {/if} <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> <th class="product header small" width="{$layout.quantity.width}%">{l s='Qty' pdf='true'}</th> <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> </tr> </thead> Link to comment Share on other sites More sharing options...
Eolia Posted January 3, 2019 Share Posted January 3, 2019 les largeurs de ces colonnes sont gérées depuis le php: /classes/pdf/HTMLTemplateInvoice.php private function computeLayout($params) { .... } 2 Link to comment Share on other sites More sharing options...
bbajc Posted January 3, 2019 Author Share Posted January 3, 2019 Merci Eolia toujours aussi efficace Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now