Add object declaration on paiment

This commit is contained in:
Maxime Kohlhaas 2013-10-10 09:31:37 +02:00
parent 845deb9a63
commit d6da871381

View File

@ -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'));