Skip to content

Commit

Permalink
NEW: Add hook on sell journal page for overwrite the processed journa…
Browse files Browse the repository at this point in the history
…l data after the SQL request
  • Loading branch information
kkhelifa-opendsi committed Sep 19, 2024
1 parent 5eff8e3 commit 5d33851
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions htdocs/accountancy/journal/sellsjournal.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,20 @@
}

// After the loop on each line
$parameters = array(
'tabfac' => &$tabfac,
'tabht' => &$tabht,
'tabtva' => &$tabtva,
'def_tva' => &$def_tva,
'tabwarranty' => &$tabwarranty,
'tabrevenuestamp' => &$tabrevenuestamp,
'tabttc' => &$tabttc,
'tablocaltax1' => &$tablocaltax1,
'tablocaltax2' => &$tablocaltax2,
'tabcompany' => &$tabcompany,
'vatdata_cache' => &$vatdata_cache,
);
$reshook = $hookmanager->executeHooks('processedJournalData', $parameters); // Note that $action and $object may have been modified by hook
} else {
dol_print_error($db);
}
Expand Down

0 comments on commit 5d33851

Please sign in to comment.