41 "comment"=>
"tva_comment",
42 "account"=>
"tva_poste",
43 "both_side"=>
'tva_both_side');
57 $this->tva_id=$p_tva_id;
58 $this->tva_label=&$this->tva_rate_sql->tva_label;
59 $this->tva_rate=&$this->tva_rate_sql->tva_rate;
60 $this->tva_comment=&$this->tva_rate_sql->tva_comment;
61 $this->tva_poste=&$this->tva_rate_sql->tva_poste;
62 $this->tva_both_side=&$this->tva_rate_sql->tva_both_side;
90 echo (__FILE__.
":".__LINE__.
'Erreur attribut inexistant');
100 throw new Exception(
"Attribut inexistant $p_string");
112 $this->tva_rate_sql->setp(
"tva_id",$this->tva_id);
114 if ( ! $this->tva_rate_sql->load() )
return -1;
124 if ( strlen($this->tva_poste??
"") == 0 ) $this->
load();
125 list(
$deb,
$cred)=explode(
",",$this->tva_poste);
135 throw (
new Exception (__FILE__.
':'.__LINE__.
" param est d ou c, on a recu [ $p_side ]"));
Acc_Tva is used for to map the table tva_rate parameter are.
setTvaRateSql(Tva_Rate_SQL $tva_rate_sql)
__construct($p_init, $p_tva_id=-1)
set_parameter($p_string, $p_value)
get_side($p_side)
get the account of the side (debit or credit)
Tva_Rate_SQL $tva_rate_sql
for($i=0;$i< $nb_jrn;$i++) $deb