From 718fb2c694f8393cbf96e785c33d5748342d2f11 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 27 Aug 2003 11:21:08 +0000 Subject: [PATCH] bugfix dans l'appell de get_num_facture --- htdocs/compta/facture.php3 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 '';