Report of supplier payment is name "supplier_payments"

This commit is contained in:
Laurent Destailleur 2017-02-06 20:37:42 +01:00
parent a4bbcd866b
commit 8f52a34e71
3 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ if (is_dir($dir))
asort($linkforyear); asort($linkforyear);
foreach($linkforyear as $cursoryear) foreach($linkforyear as $cursoryear)
{ {
print '<a href="rapport.php?year='.$cursoryear.'">'.$cursoryear.'</a> &nbsp;'; print '<a href="'.$_SERVER["PHP_SELF"].'?year='.$cursoryear.'">'.$cursoryear.'</a> &nbsp;';
} }
if ($year) if ($year)

View File

@ -118,7 +118,7 @@ class pdf_paiement_fourn
$month = sprintf("%02d",$month); $month = sprintf("%02d",$month);
$year = sprintf("%04d",$year); $year = sprintf("%04d",$year);
$file = $dir . "/payments-".$year."-".$month.".pdf"; $file = $dir . "/supplier_payments-".$year."-".$month.".pdf";
// Add pdfgeneration hook // Add pdfgeneration hook
if (! is_object($hookmanager)) if (! is_object($hookmanager))

View File

@ -128,7 +128,7 @@ if (is_dir($dir))
asort($linkforyear); asort($linkforyear);
foreach($linkforyear as $cursoryear) foreach($linkforyear as $cursoryear)
{ {
print '<a href="rapport.php?year='.$cursoryear.'">'.$cursoryear.'</a> &nbsp;'; print '<a href="'.$_SERVER["PHP_SELF"].'?year='.$cursoryear.'">'.$cursoryear.'</a> &nbsp;';
} }
if ($year) if ($year)
@ -150,7 +150,7 @@ if ($year)
{ {
while (($file = readdir($handle))!==false) while (($file = readdir($handle))!==false)
{ {
if (preg_match('/^payment/i',$file)) if (preg_match('/^supplier_payment/i',$file))
{ {
$var=!$var; $var=!$var;
$tfile = $dir . '/'.$year.'/'.$file; $tfile = $dir . '/'.$year.'/'.$file;