2
0
forked from Wavyzz/dolibarr

NEW: Hook after total Table on PDF (#28092)

Co-authored-by: Noé <noe@scopen.fr>
This commit is contained in:
noec764
2024-02-09 16:53:36 +01:00
committed by GitHub
parent c782686610
commit fac22fd16f
5 changed files with 42 additions and 2 deletions

View File

@@ -1320,6 +1320,14 @@ class pdf_eratosthene extends ModelePDFCommandes
$pdf->SetTextColor(0, 0, 0);
}
$parameters = array('pdf' => &$pdf, 'object' => &$object, 'outputlangs' => $outputlangs, 'index' => &$index);
$reshook = $hookmanager->executeHooks('afterPDFTotalTable', $parameters, $this); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) {
$this->error = $hookmanager->error;
$this->errors = $hookmanager->errors;
}
$index++;
return ($tab2_top + ($tab2_hl * $index));
}