diff --git a/htdocs/compta/facture.php3 b/htdocs/compta/facture.php3 index 45382056b97..6a51e573624 100644 --- a/htdocs/compta/facture.php3 +++ b/htdocs/compta/facture.php3 @@ -309,12 +309,15 @@ if ($action == 'create') if ($num) { $obj = $db->fetch_object(0); - - $numfa = facture_get_num(); // définit dans includes/modules/facture + + $soc = new Societe($db); + $soc->fetch($obj->idp); + + $numfa = facture_get_num($soc); // définit dans includes/modules/facture print '
'; print ''; - print "idp\">"; + print '' ."\n"; print '';