Merge pull request #24169 from frederic34/reportexportinlist

fix reports to be exportable by module
This commit is contained in:
Laurent Destailleur 2023-03-10 14:47:31 +01:00 committed by GitHub
commit b92f3a0dcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 18 deletions

View File

@ -55,7 +55,7 @@ if (isModEnabled('comptabilite')) {
if (isModEnabled('accounting')) {
$result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
}
$hookmanager->initHooks(['purchasejournallist']);
/*
* Actions
@ -192,7 +192,7 @@ if ($result) {
/*
* Show result array
*/
print "<table class=\"noborder\" width=\"100%\">";
print '<table class="liste noborder centpercent">';
print "<tr class=\"liste_titre\">";
///print "<td>".$langs->trans("JournalNum")."</td>";
print "<td>".$langs->trans("Date")."</td>";

View File

@ -57,6 +57,7 @@ if (isModEnabled('comptabilite')) {
if (isModEnabled('accounting')) {
$result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
}
$hookmanager->initHooks(['selljournallist']);
/*
* Actions
@ -237,7 +238,7 @@ if ($result) {
*/
print '<table class="noborder centpercent">';
print '<table class="liste noborder centpercent">';
print '<tr class="liste_titre">';
//print "<td>".$langs->trans("JournalNum")."</td>";
print '<td>'.$langs->trans('Date').'</td><td>'.$langs->trans('Piece').' ('.$langs->trans('InvoiceRef').')</td>';

View File

@ -110,7 +110,7 @@ if (empty($local)) {
accessforbidden('Parameter localTaxType is missing');
exit;
}
$hookmanager->initHooks(['customerlocaltaxlist']);
$calc = 0;
/*
@ -185,7 +185,7 @@ $vatcust = $langs->transcountry($local == 1 ? "LT1" : "LT2", $mysoc->country_cod
$vatsup = $langs->transcountry($local == 1 ? "LT1" : "LT2", $mysoc->country_code);
print '<div class="div-table-responsive">';
print '<table class="noborder centpercent">';
print '<table class="liste noborder centpercent">';
// IRPF that the customer has retained me
if ($calc == 0 || $calc == 2) {

View File

@ -155,7 +155,7 @@ if (isModEnabled('comptabilite')) {
if (isModEnabled('accounting')) {
$result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
}
$hookmanager->initHooks(['customersupplierreportlist']);
/*
* View
@ -254,7 +254,7 @@ if ($date_endyear) {
$param .= '&date_endyear='.$date_endyear;
}
print '<table class="noborder centpercent">';
print '<table class="liste noborder centpercent">';
print '<tr class="liste_titre">';
if ($modecompta == 'BOOKKEEPING') {

View File

@ -158,7 +158,7 @@ if (isModEnabled('comptabilite')) {
if (isModEnabled('accounting')) {
$result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
}
$hookmanager->initHooks(['resultreportlist']);
/*
* View

View File

@ -46,7 +46,7 @@ if (isModEnabled('comptabilite')) {
if (isModEnabled('accounting')) {
$result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
}
$hookmanager->initHooks(['cabyuserreportlist']);
// Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES')
$modecompta = $conf->global->ACCOUNTING_MODE;
if (GETPOST("modecompta")) {

View File

@ -203,7 +203,7 @@ $vatexpensereport = $langs->trans("VATPaid");
// VAT Received and paid
print '<div class="div-table-responsive">';
print '<table class="noborder centpercent">';
print '<table class="liste noborder centpercent">';
$y = $year_current;
$i = 0;

View File

@ -48,17 +48,13 @@ function report_header($reportname, $notused, $period, $periodlink, $description
$varlink = '?'.$varlink;
}
$head = array();
$title = $langs->trans("Report");
$h = 0;
$head[$h][0] = $_SERVER["PHP_SELF"].$varlink;
$head[$h][1] = $langs->trans("Report");
$head[$h][2] = 'report';
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].$varlink.'">'."\n";
print_barre_liste($title, '', '');
print '<form method="POST" id="searchFormList" action="'.$_SERVER["PHP_SELF"].$varlink.'">'."\n";
print '<input type="hidden" name="token" value="'.newToken().'">'."\n";
print dol_get_fiche_head($head, 'report');
print dol_get_fiche_head();
foreach ($moreparam as $key => $value) {
print '<input type="hidden" name="'.$key.'" value="'.$value.'">'."\n";