table="public.v_tva_rate"; $this->primary_key="tva_id"; /* * List of columns */ $this->name=array( "tva_id"=>"tva_id" ,'tva_code'=>"tva_code" , "tva_label"=>"tva_label" , "tva_rate"=>"tva_rate" , "tva_comment"=>"tva_comment" , "tva_purchase"=>"tva_purchase" , "tva_sale"=>"tva_sale" , "tva_both_side"=>"tva_both_side" ,'tva_reverse_account'=>'tva_reverse_account' ,'tva_payment_purchase'=>'tva_payment_purchase' ,'tva_payment_sale'=>'tva_payment_sale' ,'tva_peppol_code'=>'tva_peppol_code' , 'vx_code'=>'vx_code' ); /* * Type of columns */ $this->type=array( "tva_id"=>"numeric" ,'tva_code'=>'text' , "tva_label"=>"text" , "tva_rate"=>"numeric" , "tva_comment"=>"text" , "tva_purchase"=>"text" , "tva_sale"=>"text" , "tva_both_side"=>"numeric" ,'tva_reverse_account'=>'text' , 'tva_payment_purchase'=>'text' , 'tva_payment_sale'=>'text' ,'tva_peppol_code'=>'text' , 'vx_code'=>'text' ); $this->default=array( "tva_id"=>"auto" ); $this->date_format="DD.MM.YYYY"; parent::__construct($p_cn, $p_id); } }