Skip to content
Snippets Groups Projects
Commit f1fd0e5d authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Payments reports are stored in module that manage payments, so the invoice module

parent c274fbb9
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ require_once(DOL_DOCUMENT_ROOT."/includes/modules/rapport/pdf_paiement.class.php ...@@ -31,7 +31,7 @@ require_once(DOL_DOCUMENT_ROOT."/includes/modules/rapport/pdf_paiement.class.php
if (! $user->rights->facture->lire) if (! $user->rights->facture->lire)
accessforbidden(); accessforbidden();
$dir = $conf->compta->dir_output.'/payments'; $dir = $conf->facture->dir_output.'/payments';
$socid=0; $socid=0;
if ($user->societe_id > 0) if ($user->societe_id > 0)
...@@ -49,7 +49,7 @@ if (! $year) { $year=date("Y"); } ...@@ -49,7 +49,7 @@ if (! $year) { $year=date("Y"); }
* Actions * Actions
*/ */
if ($_POST["action"] == 'gen') if ($_POST["action"] == 'builddoc')
{ {
$rap = new pdf_paiement($db); $rap = new pdf_paiement($db);
...@@ -87,10 +87,10 @@ llxHeader(); ...@@ -87,10 +87,10 @@ llxHeader();
$titre=($year?$langs->trans("PaymentsReportsForYear",$year):$langs->trans("PaymentsReports")); $titre=($year?$langs->trans("PaymentsReportsForYear",$year):$langs->trans("PaymentsReports"));
print_fiche_titre($titre); print_fiche_titre($titre);
// Formulaire de gnration // Formulaire de generation
print '<form method="post" action="rapport.php?year='.$year.'">'; print '<form method="post" action="rapport.php?year='.$year.'">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="action" value="gen">'; print '<input type="hidden" name="action" value="builddoc">';
$cmonth = date("n", time()); $cmonth = date("n", time());
$syear = date("Y", time()); $syear = date("Y", time());
...@@ -127,7 +127,7 @@ print '<br>'; ...@@ -127,7 +127,7 @@ print '<br>';
clearstatcache(); clearstatcache();
// Affiche lien sur autres annes // Affiche lien sur autres ann�es
$linkforyear=array(); $linkforyear=array();
$found=0; $found=0;
if (is_dir($dir)) if (is_dir($dir))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment