PrestaShop Forums: [RESOLU]ajout ligne Total Tva sur facture - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[RESOLU]ajout ligne Total Tva sur facture


[RESOLU]ajout ligne Total Tva sur facture

#1 jp77

    PrestaShop Apprentice

  • 07 Apr 2010
  • Members
  • PipPip
  • 394 posts

Posted 03 September 2010 - 12:21 PM

bonjour

comment ajouter une ligne Total Tva sur la facture entre Total HT et Total TTC, car les client n'aime pas la TVA en detail.

qui peut me donner un coup de main sur ce sujet ?

merci d'avance
Prestashop 1.4.5.1
Hebergement 1and1
www.tressecuivre.com/boutique/
http://gitepierrepaul.free.fr

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 03 September 2010 - 02:32 PM

Bonjour,

Attentio, cette modification nécessite un changement dans le noyau de PrestaShop. A vous de voir, il n'y a pas d'autre alternative à l'emplacement où vous souhaitez indiquer la tva.

Dans le fichier classes/PDF.php, à la ligne 518 environ (dans la méthode public static function invoice() ),
ajoutez entre :

$pdf->Cell($width, 0, self::l('Total').' '.(self::$_priceDisplayMethod == PS_TAX_EXC ? self::l(' (tax incl.)') : self::l(' (tax excl.)')).' : ', 0, 0, 'R');
$pdf->Cell(0, 0, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice((self::$_priceDisplayMethod == PS_TAX_EXC ? $priceBreakDown['totalWithTax'] : $priceBreakDown['totalWithoutTax']), self::$currency, true, false)), 0, 0, 'R');
$pdf->Ln(4);

et

$pdf->Cell($width, 0, self::l('Total').' '.(self::$_priceDisplayMethod == PS_TAX_EXC ? self::l(' (tax excl.)') : self::l(' (tax incl.)')).' : ', 0, 0, 'R');
$pdf->Cell(0, 0, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice((self::$_priceDisplayMethod == PS_TAX_EXC ? $priceBreakDown['totalWithoutTax'] : $priceBreakDown['totalWithTax']), self::$currency, true, false)), 0, 0, 'R');
$pdf->Ln(4);


le code suivant :

$pdf->Cell($width, 0, self::l('Total').' TVA : ', 0, 0, 'R');
$pdf->Cell(0, 0, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice((floatval($priceBreakDown['totalWithTax']) - floatval($priceBreakDown['totalWithoutTax'])), self::$currency, true, false)), 0, 0, 'R');
$pdf->Ln(4);


Bonne continuation
A+

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 03 September 2010 - 03:01 PM

bonsoir

je vous remercie pour cette info tres precieuse, j'avais bien vu la ligne 518, et deja fait des essais mais il me manquais pas mal de code je fais une essais et vous tiens informer.

merci beaucoup de votre aide

cordialement

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 06 September 2010 - 04:16 AM

bonjour devnet

mille fois merci pour cette modif egalement fournie par reinette, cela marche tres bien, il ne reste plus que les problemes d'arrondi dans les calculs qui sont corrigé dans la version SVN 1.3.x je dois donc attendre maintenant ma mise en prod par la team de cette version.

vraiment merci

cordialement

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 27 September 2010 - 03:46 PM

bonjour

je pense qu'il y a que dev qui pourrait m'aider

comment penses tu qu'il faudrait modifier et ajouter pour rajouter une colonne marque sur la facture

merci pour ton aide

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 07 November 2010 - 06:10 PM

Très intéressant sauf qu'il m'affiche toujours sur la facture 0.00 comme taxe
pouvez vous m'aider à corriger ce bug s'il vous plait??





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users