|
noalyss
Version-6.7.2
|
this class manage data from the QUANT_PURCHASE table More...
Public Member Functions | |
| __construct ($p_cn, $p_jrid=0) | |
| get () | |
| retrieve some common data from jrn as the datum, the comment,payment limit... | |
this class manage data from the QUANT_PURCHASE table
Definition at line 665 of file class_acc_operation.php.
| Acc_Purchase::__construct | ( | $ | p_cn, |
| $ | p_jrid = 0 |
||
| ) |
Reimplemented from Acc_Detail.
Definition at line 667 of file class_acc_operation.php.
{
parent::__construct($p_cn,$p_jrid);
$this->signature='ACH';
}
retrieve some common data from jrn as the datum, the comment,payment limit...
Reimplemented from Acc_Detail.
Definition at line 673 of file class_acc_operation.php.
{
parent::get();
$sql="SELECT qp_id, qp_internal, j_id, qp_fiche, qp_quantite, qp_price, qp_vat,
qp_vat_code, qp_nd_amount, qp_nd_tva, qp_nd_tva_recup, qp_supplier,
qp_valid, qp_dep_priv,j_text,qp_vat_sided
FROM quant_purchase join jrnx using(j_id) where j_grpt=$1";
$this->det->array=$this->db->get_array($sql,array($this->det->jr_grpt_id));
}