} else { $size = $pdf->addLine($y, $line, $designation, $bottomLine); } //$pdf->conditionGeneral($FAC_CON_VENTE.' ', $FAC_PENALITE.' ', $contact, $banque, $entreprise, $FAC_REG); if ($row['FAC_AVO'] == "") { $pdf->conditionGeneral($entreprise['ENT_LOGOPIED'], $entreprise, $titre[0], $pave[0], $titre[1], $pave[1], $contact, $banque, $reg); } else { $pdf->conditionGeneral($entreprise['ENT_LOGOPIED'], $entreprise); } if ($row['FAC_NUM'] != '') { switch ($FAC_COMPTEUR) { case 0: $nom = 'Exemplaire client'; break; case 1: $nom = 'Exemplaire ' . $entreprise['ENT_NOM']; break; default: $nom = 'DUPLICATA'; break; } $pdf->compteur($nom); } $pdf->Output($nomfic, 'IF'); // Mise à jour du compteur d'impression de facture if ($row['FAC_NUM'] != '') { // SI ON ARRIVE LA, C'EST QUE LA FACTURE EST IMPRIMEE CORRECTEMENT $FAC_COMPTEUR = $FAC_COMPTEUR + 1; $qmajfac = 'UPDATE FACTURE SET FAC_COMPTEUR="' . $FAC_COMPTEUR . '" WHERE FAC_NO=' . $row['FAC_NO']; $rmajfac = $GLOBALS['connexion']->query($qmajfac); }