diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 8960bc8a850..59cd013b4ef 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -277,8 +277,7 @@ if ($action == 'send') $mailfile = new CMailFile($subject,$sendto,$replyto,$message,array ($file),array ("application/pdf"),array ($filename)); if ( $mailfile->sendfile() ) - { - + { $sendto = htmlentities($sendto); $sql = "INSERT INTO ".MAIN_DB_PREFIX."actioncomm (datea,fk_action,fk_soc,note,fk_facture, fk_contact,fk_user_author, label, percent) VALUES (now(), '9' ,'$fac->socidp' ,'Envoyée à $sendto','$fac->id','$sendtoid','$user->id', 'Envoi Facture par mail',100);"; @@ -1022,16 +1021,17 @@ else } // Récurrente - if (! defined("FACTURE_NORECURENTE")) { // Possibilité de désactiver les factures récurrentes - if ($fac->statut > 0) + if (! defined("FACTURE_NORECURENTE")) // Possibilité de désactiver les factures récurrentes { - print 'Récurrente'; + if ($fac->statut > 0) + { + print 'Récurrente'; + } + else + { + print '-'; + } } - else - { - print '-'; - } - } print ""; } @@ -1296,31 +1296,26 @@ else print_barre_liste("Factures clients",$page,$PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num); $i = 0; - print ""; - print ''; - print ''; - print '
Numéro'; + print ''; + print ''; + print ''; + print ''; - print ''; - print ''; - print ''; - - print ''; + print ''; print ''; - print "\n"; + print "\n"; if ($num > 0) { $var=True; - $total=0; - $totalrecu=0; + $total=0; + $totalrecu=0; while ($i < min($num,$limit)) { @@ -1344,8 +1339,8 @@ else } } - print '\n"; + print '\n"; if ($objp->df > 0 ) {
Numéro'; print_liste_field_titre("Date",$PHP_SELF,"f.datef","","&socidp=$socidp"); - print ''; + print ''; print_liste_field_titre("Société",$PHP_SELF,"s.nom","","&socidp=$socidp"); - print ''; + print ''; print_liste_field_titre("Montant HT",$PHP_SELF,"s.nom","","&socidp=$socidp"); - print ''; + print ''; print_liste_field_titre("Montant TTC",$PHP_SELF,"s.nom","","&socidp=$socidp"); - print 'ReçuReçuStatus
' . $objp->facnumber; - print "'.img_file()." \n"; + print ''.$objp->facnumber."