Fix prob. date in ANC_TABLE
This commit is contained in:
parent
40c47ed224
commit
87f0122a3f
2 changed files with 5 additions and 4 deletions
|
|
@ -258,7 +258,7 @@ class Anc_Table extends Anc_Acc_Link
|
|||
for ($i=0;$i<count($this->arow);$i++)
|
||||
{
|
||||
|
||||
printf('"%s"',$this->arow[$i]['j_qcode'].' '.$this->arow[$i]['name']);
|
||||
printf('"%s"',$this->arow[$i]['card_account'].' '.$this->arow[$i]['name']);
|
||||
$tot_row=0;
|
||||
for ($x=0;$x<count($this->aheader);$x++)
|
||||
{
|
||||
|
|
@ -299,11 +299,11 @@ class Anc_Table extends Anc_Acc_Link
|
|||
for ($i=0;$i<count($this->arow);$i++)
|
||||
{
|
||||
|
||||
printf('"%s"',$this->arow[$i]['j_poste'].' '.$this->arow[$i]['name']);
|
||||
printf('"%s"',$this->arow[$i]['card_account'].' '.$this->arow[$i]['name']);
|
||||
$tot_row=0;
|
||||
for ($x=0;$x<count($this->aheader);$x++)
|
||||
{
|
||||
$amount=$this->db->get_value($this->sql,array($this->arow[$i]['j_poste'],$this->aheader[$x]['po_id']));
|
||||
$amount=$this->db->get_value($this->sql,array($this->arow[$i]['card_account'],$this->aheader[$x]['po_id']));
|
||||
if ($amount==null)$amount=0;
|
||||
if ( isset($tot_col[$x]))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,4 +31,5 @@ header('Content-Disposition: attachment;filename="anc-table-export.csv"',FALSE);
|
|||
require_once('class_anc_table.php');
|
||||
$atable=new Anc_Table($cn);
|
||||
$atable->get_request();
|
||||
$atable->export_csv();
|
||||
$atable->export_csv();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue