Fix: [ bug #272 ] Impossible afficher Créances-Dettes sur période
d'analyse choisie
This commit is contained in:
parent
a3220562d8
commit
7e8b17f44f
@ -89,7 +89,7 @@ else
|
|||||||
|
|
||||||
// Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES')
|
// Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES')
|
||||||
$modecompta = $conf->compta->mode;
|
$modecompta = $conf->compta->mode;
|
||||||
if ($_GET["modecompta"]) $modecompta=$_GET["modecompta"];
|
if (GETPOST("modecompta")) $modecompta=GETPOST("modecompta");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ else {
|
|||||||
$builddate=time();
|
$builddate=time();
|
||||||
//$exportlink=$langs->trans("NotYetAvailable");
|
//$exportlink=$langs->trans("NotYetAvailable");
|
||||||
}
|
}
|
||||||
report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportlink);
|
report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportlink,array('modecompta'=>$modecompta));
|
||||||
|
|
||||||
// Show report array
|
// Show report array
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|||||||
@ -46,7 +46,7 @@ accessforbidden();
|
|||||||
|
|
||||||
// Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES')
|
// Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES')
|
||||||
$modecompta = $conf->compta->mode;
|
$modecompta = $conf->compta->mode;
|
||||||
if ($_GET["modecompta"]) $modecompta=$_GET["modecompta"];
|
if (GETPOST("modecompta")) $modecompta=GETPOST("modecompta");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ else {
|
|||||||
$builddate=time();
|
$builddate=time();
|
||||||
//$exportlink=$langs->trans("NotYetAvailable");
|
//$exportlink=$langs->trans("NotYetAvailable");
|
||||||
}
|
}
|
||||||
report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportlink);
|
report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportlink,array('modecompta'=>$modecompta));
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -77,7 +77,9 @@ else {
|
|||||||
$builddate=time();
|
$builddate=time();
|
||||||
//$exportlink=$langs->trans("NotYetAvailable");
|
//$exportlink=$langs->trans("NotYetAvailable");
|
||||||
}
|
}
|
||||||
report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportlink);
|
$moreparam=array();
|
||||||
|
if (! empty($modecompta)) $moreparam['modecompta']=$modecompta;
|
||||||
|
report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportlink,$moreparam);
|
||||||
|
|
||||||
|
|
||||||
if ($modecompta == 'CREANCES-DETTES') {
|
if ($modecompta == 'CREANCES-DETTES') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user