|
noalyss
Version-6.7.2
|
Public Member Functions | |
| __construct ($p_cn, $p_jrid=0) | |
| get () | |
| retrieve some common data from jrn as the datum, the comment,payment limit... | |
Definition at line 578 of file class_acc_operation.php.
| Acc_Detail::__construct | ( | $ | p_cn, |
| $ | p_jrid = 0 |
||
| ) |
Reimplemented in Acc_Fin, Acc_Purchase, Acc_Sold, and Acc_Misc.
Definition at line 580 of file class_acc_operation.php.
References jr_id.
{
parent::__construct($p_cn);
$this->jr_id=$p_jrid;
$this->det=new stdClass();
}
| Acc_Detail::get | ( | ) |
retrieve some common data from jrn as the datum, the comment,payment limit...
Reimplemented from Acc_Operation.
Reimplemented in Acc_Fin, Acc_Purchase, Acc_Sold, and Acc_Misc.
Definition at line 590 of file class_acc_operation.php.
References $array, $sql, $val, db, and jr_id.
{
$sql="SELECT jr_id, jr_def_id, jr_montant, jr_comment, jr_date, jr_grpt_id,
jr_internal, jr_tech_date, jr_tech_per, jrn_ech, jr_ech, jr_rapt,jr_ech,
jr_valid, jr_opid, jr_c_opid, jr_pj, jr_pj_name, jr_pj_type,
jr_pj_number, jr_mt,jr_rapt,jr_date_paid
FROM jrn where jr_id=$1";
$array=$this->db->get_array($sql,array($this->jr_id));
if ( count($array) == 0 ) throw new Exception('Aucune ligne trouvée');
foreach ($array[0] as $key=>$val)
{
$this->det->$key=$val;
}
$sql="select n_text from jrn_note where jr_id=$1";
$this->det->note=$this->db->get_value($sql,array($this->jr_id));
$this->det->note=strip_tags($this->det->note);
}