Index: htdocs/includes/modules/facture/pdf_tourteau.modules.php =================================================================== RCS file: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/facture/pdf_tourteau.modules.php,v retrieving revision 1.17 diff -u -r1.17 pdf_tourteau.modules.php --- htdocs/includes/modules/facture/pdf_tourteau.modules.php 19 Sep 2003 13:38:16 -0000 1.17 +++ htdocs/includes/modules/facture/pdf_tourteau.modules.php 28 Oct 2003 21:28:09 -0000 @@ -152,6 +152,25 @@ $pdf->SetXY (174, $tab2_top + 16); $pdf->MultiCell(26, 8, price($fac->total_ttc), 1, 'R', 1); + $deja_regle = $fac->getSommePaiement(); + + if ($deja_regle > 0) + { + $pdf->Rect(132, $tab2_top+$tab2_height, 68, 16); + + $pdf->SetXY (132, $tab2_top + 24); + $pdf->MultiCell(42, 8, "Déjà réglé", 0, 'R', 0); + + $pdf->SetXY (132, $tab2_top + 32); + $pdf->MultiCell(42, 8, "Reste à payer", 1, 'R', 1); + + $pdf->SetXY (174, $tab2_top + 24); + $pdf->MultiCell(26, 8, price($deja_regle), 0, 'R', 0); + + $pdf->SetXY (174, $tab2_top + 32); + $pdf->MultiCell(26, 8, price($fac->total_ttc - $deja_regle), 1, 'R', 1); + } + /* * */ @@ -269,24 +288,24 @@ { $pdf->SetTextColor(0,0,200); $pdf->SetFont('Arial','B',14); - $pdf->MultiCell(60, 8, FAC_PDF_INTITULE, 0, 'L'); + $pdf->MultiCell(76, 8, FAC_PDF_INTITULE, 0, 'L'); } $pdf->SetTextColor(70,70,170); if (defined("FAC_PDF_ADRESSE")) { $pdf->SetFont('Arial','',12); - $pdf->MultiCell(40, 5, FAC_PDF_ADRESSE); + $pdf->MultiCell(76, 5, FAC_PDF_ADRESSE); } if (defined("FAC_PDF_TEL")) { $pdf->SetFont('Arial','',10); - $pdf->MultiCell(40, 5, "Tél : ".FAC_PDF_TEL); + $pdf->MultiCell(76, 5, "Tél : ".FAC_PDF_TEL); } if (defined("FAC_PDF_SIREN")) { $pdf->SetFont('Arial','',10); - $pdf->MultiCell(40, 5, "SIREN : ".FAC_PDF_SIREN); + $pdf->MultiCell(76, 5, "SIREN : ".FAC_PDF_SIREN); } if (defined("FAC_PDF_INTITULE2")) @@ -303,10 +322,10 @@ $pdf->SetFont('Arial','B',12); $fac->fetch_client(); $pdf->SetXY(102,42); - $pdf->MultiCell(66,5, $fac->client->nom); + $pdf->MultiCell(96,5, $fac->client->nom); $pdf->SetFont('Arial','B',11); $pdf->SetXY(102,47); - $pdf->MultiCell(66,5, $fac->client->adresse . "\n" . $fac->client->cp . " " . $fac->client->ville); + $pdf->MultiCell(96,5, $fac->client->adresse . "\n" . $fac->client->cp . " " . $fac->client->ville); $pdf->rect(100, 40, 100, 40);