fix reports to be exportable by module
This commit is contained in:
parent
09a5f09e2a
commit
64fd226b4a
@ -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>";
|
||||
|
||||
@ -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>';
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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') {
|
||||
|
||||
@ -158,7 +158,7 @@ if (isModEnabled('comptabilite')) {
|
||||
if (isModEnabled('accounting')) {
|
||||
$result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
|
||||
}
|
||||
|
||||
$hookmanager->initHooks(['resultreportlist']);
|
||||
|
||||
/*
|
||||
* View
|
||||
|
||||
@ -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")) {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user