20require_once NOALYSS_INCLUDE.
'/constant.php';
21require_once NOALYSS_INCLUDE.
'/lib/user_common.php';
46 parent::__construct($p_cn,
$p_id) ;
54 $this->poste=($p_poste==0)?$this->poste:$p_poste;
55 $sql=
"select * from vw_supplier where poste_comptable=".$this->poste;
61 $this->
id=
$row[
'f_id'];
62 $this->street=
$row[
'rue'];
63 $this->cp=
$row[
'code_postal'];
64 $this->country=
$row[
'pays'];
65 $this->vat_number=
$row[
'tva_num'];
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static num_row($ret)
wrapper for the function pg_num_rows
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
class Supplier are a specific kind of card
get_by_account($p_poste=0)
Get all info contains in the view thanks to the poste elt (account)
__construct($p_cn, $p_id=0)
Constructor /* only a db connection is needed.
const FICHE_TYPE_FOURNISSEUR