task 7263 Add the date for the report

This commit is contained in:
sparkyx 2007-09-01 17:57:23 +00:00
parent 8cdc4e075c
commit c244f96231
4 changed files with 82 additions and 60 deletions

View file

@ -48,9 +48,10 @@ class rapport {
* from a report
* \param $p_start start periode
* \param $p_end end periode
* \param $p_type_date type of the date : periode or calendar
*/
function GetRow($p_start,$p_end) {
function GetRow($p_start,$p_end,$p_type_date) {
$Res=ExecSql($this->db,"select fo_id ,
fo_fr_id,
@ -66,11 +67,13 @@ class rapport {
$col=array();
for ($i=0;$i<$Max;$i++) {
$l_line=pg_fetch_array($Res,$i);
$col[]=ParseFormula($this->db,
$l_line['fo_label'],
$l_line['fo_formula'],
$p_start,
$p_end
$col[]=ParseFormula($this->db,
$l_line['fo_label'],
$l_line['fo_formula'],
$p_start,
$p_end,
true,
$p_type_date
);
} //for ($i
@ -78,4 +81,4 @@ class rapport {
return $col;
}
}
?>
?>