Report of supplier payment is name "supplier_payments"
This commit is contained in:
parent
a4bbcd866b
commit
8f52a34e71
@ -128,7 +128,7 @@ if (is_dir($dir))
|
||||
asort($linkforyear);
|
||||
foreach($linkforyear as $cursoryear)
|
||||
{
|
||||
print '<a href="rapport.php?year='.$cursoryear.'">'.$cursoryear.'</a> ';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?year='.$cursoryear.'">'.$cursoryear.'</a> ';
|
||||
}
|
||||
|
||||
if ($year)
|
||||
|
||||
@ -118,7 +118,7 @@ class pdf_paiement_fourn
|
||||
|
||||
$month = sprintf("%02d",$month);
|
||||
$year = sprintf("%04d",$year);
|
||||
$file = $dir . "/payments-".$year."-".$month.".pdf";
|
||||
$file = $dir . "/supplier_payments-".$year."-".$month.".pdf";
|
||||
|
||||
// Add pdfgeneration hook
|
||||
if (! is_object($hookmanager))
|
||||
|
||||
@ -128,7 +128,7 @@ if (is_dir($dir))
|
||||
asort($linkforyear);
|
||||
foreach($linkforyear as $cursoryear)
|
||||
{
|
||||
print '<a href="rapport.php?year='.$cursoryear.'">'.$cursoryear.'</a> ';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?year='.$cursoryear.'">'.$cursoryear.'</a> ';
|
||||
}
|
||||
|
||||
if ($year)
|
||||
@ -150,7 +150,7 @@ if ($year)
|
||||
{
|
||||
while (($file = readdir($handle))!==false)
|
||||
{
|
||||
if (preg_match('/^payment/i',$file))
|
||||
if (preg_match('/^supplier_payment/i',$file))
|
||||
{
|
||||
$var=!$var;
|
||||
$tfile = $dir . '/'.$year.'/'.$file;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user