Merge pull request #7862 from atm-john/add_puschasesjournal_hook

Add new doActions hook
This commit is contained in:
Laurent Destailleur 2017-11-24 16:37:26 +01:00 committed by GitHub
commit 9836f42bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,9 +56,18 @@ $now = dol_now();
if ($user->societe_id > 0) if ($user->societe_id > 0)
accessforbidden(); accessforbidden();
$hookmanager->initHooks(array('purchasesjournal'));
$parameters=array();
/* /*
* Actions * Actions
*/ */
$reshook=$hookmanager->executeHooks('doActions',$parameters,$user,$action); // Note that $action and $object may have been modified by some hooks
/*
* Views
*/
// Get informations of journal // Get informations of journal
$accountingjournalstatic = new AccountingJournal($db); $accountingjournalstatic = new AccountingJournal($db);