diff --git a/include/class/class_anc_table.php b/include/class/class_anc_table.php index ae119308f..970b19f92 100644 --- a/include/class/class_anc_table.php +++ b/include/class/class_anc_table.php @@ -56,8 +56,8 @@ class Anc_Table extends Anc_Acc_Link */ function load_poste() { - $sql_from_poste=($this->from_poste!='')?" and po.po_name >= upper('".Database::escape_string($this->from_poste)."')":''; - $sql_to_poste=($this->to_poste!='')?" and po.po_name <= upper('".Database::escape_string($this->to_poste)."')":''; + $sql_from_poste=($this->from_poste!='')?" and po_name >= upper('".Database::escape_string($this->from_poste)."')":''; + $sql_to_poste=($this->to_poste!='')?" and po_name <= upper('".Database::escape_string($this->to_poste)."')":''; $this->db->exec_sql('create temporary table table_analytic as select * from comptaproc.table_analytic_account(\''.$this->from.'\',\''.$this->to.'\')'); $header="select distinct po_id,po_name from table_analytic @@ -79,8 +79,8 @@ class Anc_Table extends Anc_Acc_Link */ function load_card() { - $sql_from_poste=($this->from_poste!='')?" and po.po_name >= upper('".Database::escape_string($this->from_poste)."')":''; - $sql_to_poste=($this->to_poste!='')?" and po.po_name <= upper('".Database::escape_string($this->to_poste)."')":''; + $sql_from_poste=($this->from_poste!='')?" and po_name >= upper('".Database::escape_string($this->from_poste)."')":''; + $sql_to_poste=($this->to_poste!='')?" and po_name <= upper('".Database::escape_string($this->to_poste)."')":''; $this->db->exec_sql('create temporary table table_analytic as select * from comptaproc.table_analytic_card(\''.$this->from.'\',\''.$this->to.'\')'); $header="select distinct po_id,po_name from table_analytic @@ -170,7 +170,7 @@ class Anc_Table extends Anc_Acc_Link } - echo '