diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 6faeb1fa951..b75c952b1f6 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -57,6 +57,14 @@ if ($user->societe_id > 0) $socid = $user->societe_id; } +$object=new Facture($db); + +// Load object +if ($facid > 0) +{ + $ret=$object->fetch($id); +} + // Initialize technical object to manage hooks of paiements. Note that conf->hooks_modules contains array array $hookmanager = new HookManager($db); $hookmanager->initHooks(array('paiementcard'));