Stephane67205 Posted October 29, 2022 Share Posted October 29, 2022 Bonjour sur mes facture il me manque deux chose date de la facturation champ vide et référence champ aussi vide pourquoi et comment règle ce problème merci a vous Photo ci-joint Je suis en prestashop 1.7.8.7 Encore merci d’avance pour vous solution Link to comment Share on other sites More sharing options...
Chloe007 Posted October 29, 2022 Share Posted October 29, 2022 Bonjour, pouvez-vous vérifier dans votre fichier /pdf/invoice.summary-tab.tpl que vous avez bien la ligne qui met invoice date : <table id="summary-tab" width="100%"> <tr> <th class="header small" valign="middle">{l s='Invoice Number' d='Shop.Pdf' pdf='true'}</th> <th class="header small" valign="middle">{l s='Invoice Date' d='Shop.Pdf' pdf='true'}</th> et dans /pdf/invoice-product-table.tpl la ligne <table class="product" width="100%" cellpadding="4" cellspacing="0"> <thead> <tr> <th class="product header small" width="{$layout.reference.width}%">{l s='Reference' d='Shop.Pdf' pdf='true'}</th> <th class="product header small" width="{$layout.product.width}%">{l s='Product' d='Shop.Pdf' pdf='true'}</th> <th class="product header small" width="{$layout.tax_code.width}%">{l s='Tax Rate' d='Shop.Pdf' pdf='true'}</th> Link to comment Share on other sites More sharing options...
Stephane67205 Posted October 29, 2022 Author Share Posted October 29, 2022 (edited) Merci pour votre réponse mes si je me trompe pas j'ai les ligne que vous me dite tous et ok j'ai dépose les deux fichier pour verification..... Merci a vous invoice.product-tab.tplinvoice.summary-tab.tpl Edited October 29, 2022 by Stephane67205 (see edit history) Link to comment Share on other sites More sharing options...
Chloe007 Posted October 30, 2022 Share Posted October 30, 2022 (edited) Bonjour, pouvez-vous essayer de remplacer dans invoice-product-tab le début du code c'est à dire ça : <table class="product" width="100%" cellpadding="4" cellspacing="0"> {assign var='widthColProduct' value=$layout.product.width} {if !$isTaxEnabled} {assign var='widthColProduct' value=$widthColProduct+$layout.tax_code.width} {/if} <thead> <tr> <th class="product header small" width="{$layout.reference.width}%">{l s='Reference' d='Shop.Pdf' pdf='true'}</th> <th class="product header small" width="{$widthColProduct}%">{l s='Product' d='Shop.Pdf' pdf='true'}</th> {if $isTaxEnabled} <th class="product header small" width="{$layout.tax_code.width}%">{l s='Tax Rate' d='Shop.Pdf' pdf='true'}</th> {/if} {if isset($layout.before_discount)} <th class="product header small" width="{$layout.unit_price_tax_excl.width}%"> {l s='Base price' d='Shop.Pdf' pdf='true'}{if $isTaxEnabled}<br /> {l s='(Tax excl.)' d='Shop.Pdf' pdf='true'}{/if} </th> {/if} <th class="product header-right small" width="{$layout.unit_price_tax_excl.width}%"> {l s='Unit Price' d='Shop.Pdf' pdf='true'}{if $isTaxEnabled}<br /> {l s='(Tax excl.)' d='Shop.Pdf' pdf='true'}{/if} </th> <th class="product header small" width="{$layout.quantity.width}%">{l s='Qty' d='Shop.Pdf' pdf='true'}</th> <th class="product header-right small" width="{$layout.total_tax_excl.width}%"> {l s='Total' d='Shop.Pdf' pdf='true'}{if $isTaxEnabled}<br /> {l s='(Tax excl.)' d='Shop.Pdf' pdf='true'}{/if} </th> </tr> </thead> <tbody> par ça : <table class="product" width="100%" cellpadding="4" cellspacing="0"> <thead> <tr> <th class="product header small" width="{$layout.reference.width}%">{l s='Reference' d='Shop.Pdf' pdf='true'}</th> <th class="product header small" width="{$layout.product.width}%">{l s='Product' d='Shop.Pdf' pdf='true'}</th> <th class="product header small" width="{$layout.tax_code.width}%">{l s='Tax Rate' d='Shop.Pdf' pdf='true'}</th> {if isset($layout.before_discount)} <th class="product header small" width="{$layout.unit_price_tax_excl.width}%">{l s='Base price' d='Shop.Pdf' pdf='true'} <br /> {l s='(Tax excl.)' d='Shop.Pdf' pdf='true'}</th> {/if} <th class="product header-right small" width="{$layout.unit_price_tax_excl.width}%">{l s='Unit Price' d='Shop.Pdf' pdf='true'} <br /> {l s='(Tax excl.)' d='Shop.Pdf' pdf='true'}</th> <th class="product header small" width="{$layout.quantity.width}%">{l s='Qty' d='Shop.Pdf' pdf='true'}</th> <th class="product header-right small" width="{$layout.total_tax_excl.width}%">{l s='Total' d='Shop.Pdf' pdf='true'} <br /> {l s='(Tax excl.)' d='Shop.Pdf' pdf='true'}</th> </tr> </thead> <tbody> Attention ne pas le faire sur un site en production ! C'est pour peut-être identifier le problème. Edited October 30, 2022 by Chloe007 (see edit history) Link to comment Share on other sites More sharing options...
Chloe007 Posted October 30, 2022 Share Posted October 30, 2022 Et avez-vous installé un module récemment? Link to comment Share on other sites More sharing options...
Stephane67205 Posted October 30, 2022 Author Share Posted October 30, 2022 non j'ai pas installe de nouveau module et j'ai teste votre code et ça marche pas... 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