bugfix dans l'appell de get_num_facture
This commit is contained in:
parent
612521c3fb
commit
718fb2c694
@ -310,11 +310,14 @@ if ($action == 'create')
|
|||||||
{
|
{
|
||||||
$obj = $db->fetch_object(0);
|
$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 '<form action="'.$PHP_SELF.'" method="post">';
|
print '<form action="'.$PHP_SELF.'" method="post">';
|
||||||
print '<input type="hidden" name="action" value="add">';
|
print '<input type="hidden" name="action" value="add">';
|
||||||
print "<input type=\"hidden\" name=\"socid\" value=\"$obj->idp\">";
|
print '<input type="hidden" name="socid" value="'.$obj->idp.'">' ."\n";
|
||||||
|
|
||||||
print '<table cellspacing="0" cellpadding="3" border="1" width="100%">';
|
print '<table cellspacing="0" cellpadding="3" border="1" width="100%">';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user