table = "public.quant_purchase"; $this->primary_key = "qp_id"; /* * List of columns */ $this->name = array( "qp_id" => "qp_id" , "qp_internal" => "qp_internal" , "j_id" => "j_id" , "qp_fiche" => "qp_fiche" , "qp_quantite" => "qp_quantite" , "qp_price" => "qp_price" , "qp_vat" => "qp_vat" , "qp_vat_code" => "qp_vat_code" , "qp_nd_amount" => "qp_nd_amount" , "qp_nd_tva" => "qp_nd_tva" , "qp_nd_tva_recup" => "qp_nd_tva_recup" , "qp_supplier" => "qp_supplier" , "qp_valid" => "qp_valid" , "qp_dep_priv" => "qp_dep_priv" , "qp_vat_sided" => "qp_vat_sided" , "qp_unit" => "qp_unit" ); /* * Type of columns */ $this->type = array( "qp_id" => "numeric" , "qp_internal" => "text" , "j_id" => "numeric" , "qp_fiche" => "numeric" , "qp_quantite" => "numeric" , "qp_price" => "numeric" , "qp_vat" => "numeric" , "qp_vat_code" => "numeric" , "qp_nd_amount" => "numeric" , "qp_nd_tva" => "numeric" , "qp_nd_tva_recup" => "numeric" , "qp_supplier" => "numeric" , "qp_valid" => "text" , "qp_dep_priv" => "numeric" , "qp_vat_sided" => "numeric" , "qp_unit" => "numeric" ); $this->default = array( "qp_id" => "auto" ); $this->date_format = "DD.MM.YYYY"; parent::__construct($p_cn, $p_id); } }