diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index afaa8833ed0..d2e9db128d1 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -627,6 +627,8 @@ if ($_GET['action'] == 'create') $societe_id = $commande->soc_id; $projet=$commande-> projet_id; $ref_client=$commande->ref_client; + $cond_reglement_id = $commande->cond_reglement_id; + $mode_reglement_id = $commande->mode_reglement_id; $soc->fetch($societe_id); } elseif ($_GET['contratid']) @@ -641,6 +643,8 @@ if ($_GET['action'] == 'create') { $societe_id=$socidp; $soc->fetch($societe_id); + $cond_reglement_id = $soc->cond_reglement; + $mode_reglement_id = $soc->mode_reglement; } @@ -666,12 +670,12 @@ if ($_GET['action'] == 'create') // Conditions de réglement print '