noalyss  Version-6.7.2
Public Member Functions
Acc_Purchase Class Reference

this class manage data from the QUANT_PURCHASE table More...

Inheritance diagram for Acc_Purchase:
Acc_Detail Acc_Operation

Public Member Functions

 __construct ($p_cn, $p_jrid=0)
 get ()
 retrieve some common data from jrn as the datum, the comment,payment limit...

Detailed Description

this class manage data from the QUANT_PURCHASE table

Note:
Data member are the column of the table

Definition at line 665 of file class_acc_operation.php.


Constructor & Destructor Documentation

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';
    }

Member Function Documentation

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.

References $sql, and db.

    {
        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));
    }

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations