} else { $pdf->addReference($FAC_NUMCMDE, $FAC_CODCLI, $FAC_NOMCTC, $FAC_CODFOU, $FAC_NOMCOM, $FAC_NUM); } //////////////////////////// //Ajout élément à facturer// //////////////////////////// // $y = 80; if ($row['FAC_AVO'] != "") { $size = $pdf->addLine($y, $line, $designation, $bottomLine, $FAC_COMMENTAIRE); } 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; }