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

@ -55,10 +55,19 @@ $now = dol_now();
// Security check
if ($user->societe_id > 0)
accessforbidden();
$hookmanager->initHooks(array('purchasesjournal'));
$parameters=array();
/*
* 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
$accountingjournalstatic = new AccountingJournal($db);