noalyss Version-9
Public Member Functions | Data Fields
Acc_Detail Class Reference

Contains the detail of an operation Acc_Operation. More...

+ Inheritance diagram for Acc_Detail:
+ Collaboration diagram for Acc_Detail:

Public Member Functions

 __construct ($p_cn, $p_jrid=0)
 
 compute_array ()
 
 get ()
 retrieve some common data from jrn as the datum, the comment,payment limit... More...
 
- Public Member Functions inherited from Acc_Operation
 __construct ($p_cn)
 constructor set automatically the attributes user and periode More...
 
 __toString ()
 
 display_jrnx_detail ($p_table)
 display_jrnx_detail : get the data from get_jrnx_data and return a string with HTML code More...
 
 find_tiers ($pn_jrn_id, $pn_jrnx_id, $p_code)
 Find the tiers of an operation , thanks the SQL prepared query prep_tiers and prep_counterpart. More...
 
 form_clone_operation ($p_id)
 create a form to recreate the operation and returns it, just like a correct More...
 
 get ()
 retrieve data from jrnx and jrn More...
 
 get_amount ()
 return amount of the jr_id More...
 
 get_currency_amount ()
 retrieve amount in currency for the operation More...
 
 get_data ($p_grpt)
 Get data from jrnx where p_grpt=jrnx(j_grpt) More...
 
 get_info ()
 retrieve info from the jrn_info, create 2 new arrays obj->info->command and obj->info->other the columns are the idx More...
 
 get_internal ()
 Return the internal value, the property jr_id must be set before. More...
 
 get_jrnx_detail ()
 retrieve data from jrnx More...
 
 get_ledger ()
 return the jrn_def_id from jrn More...
 
 get_quant ()
 retrieve data from the table QUANT_* More...
 
 get_sum_other_tax ()
 get the sum of other tax linked to this operation More...
 
 insert_jrn ()
 Insert into the table Jrn, the amount is computed from jrnx thanks the group id ($p_grpt) More...
 
 insert_jrnx ()
 Insert into the table Jrn The needed data are : More...
 
 insert_related_action ($p_string)
 
 operation_update_comment ($p_text)
 add a comment to the operation (jrn.jr_text) More...
 
 operation_update_date_limit ($p_text)
 add a limit of payment to the operation (jrn.jr_ech) More...
 
 save_info ($p_info, $p_type)
 Save into jrn_info. More...
 
 seek_group ()
 retrieve the grpt_id from jrn for a jr_id More...
 
 seek_internal ($p_internal)
 search an operation thankx it internal code More...
 
 set_id ($p_id)
 set the operation id (jrn.jr_id) More...
 
 set_paid ()
 flag the operation as paid More...
 
 set_pj ()
 set the pj of a operation in jrn. the jr_id must be set More...
 
 update_comment ($p_text)
 add a comment to the line (jrnx.j_text) More...
 

Data Fields

 $det
 
 $info
 
 $jr_id
 
- Data Fields inherited from Acc_Operation
 $amount
 
 $currency_id
 
 $currency_rate
 
 $currency_rate_ref
 
 $date
 
 $date_paid
 
 $db
 
 $debit
 
 $grpt
 
 $jr_id
 
 $jr_internal
 
 $jr_optype
 
 $jrn
 
 $jrn_id
 
 $periode
 
 $poste
 
 $qcode
 < Qcode of item More...
 
 $signature
 
 $user
 

Additional Inherited Members

- Static Public Member Functions inherited from Acc_Operation
static select_operation_type ($p_status)
 Return a select object to choose the type of operation. More...
 
static test_me ()
 

Detailed Description

Contains the detail of an operation Acc_Operation.

Definition at line 970 of file acc_operation.class.php.

Constructor & Destructor Documentation

◆ __construct()

Acc_Detail::__construct (   $p_cn,
  $p_jrid = 0 
)

Reimplemented in Acc_Misc, Acc_Sold, Acc_Purchase, and Acc_Fin.

Definition at line 976 of file acc_operation.class.php.

977 {
978 parent::__construct($p_cn);
979 $this->jr_id=$p_jrid;
980 $this->det=new stdClass();
981 }
$op jr_id
Definition: ajax_ledger.php:83

References jr_id.

Member Function Documentation

◆ compute_array()

Acc_Detail::compute_array ( )

Reimplemented in Acc_Misc, Acc_Sold, Acc_Purchase, and Acc_Fin.

Definition at line 1006 of file acc_operation.class.php.

1007 {
1008 $array=array();
1009 $array['desc']=$this->det->jr_comment;
1010 $array['e_date']="";
1011 $array['e_ech']="";
1012 $array['p_jrn']=$this->det->jr_def_id;
1013 return $array;
1014
1015 }

References $array.

◆ get()

Acc_Detail::get ( )

retrieve some common data from jrn as the datum, the comment,payment limit...

Reimplemented from Acc_Operation.

Reimplemented in Acc_Misc, Acc_Sold, Acc_Purchase, and Acc_Fin.

Definition at line 986 of file acc_operation.class.php.

987 {
988 $sql="SELECT jr_id, jr_def_id, jr_montant, jr_comment, jr_date, jr_grpt_id,
989 jr_internal, jr_tech_date, jr_tech_per, jrn_ech, jr_ech, jr_rapt,jr_ech,
990 jr_valid, jr_opid, jr_c_opid, jr_pj, jr_pj_name, jr_pj_type,
991 jr_pj_number, jr_mt,jr_rapt,jr_date_paid,jr_optype,currency_id,currency_rate,currency_rate_ref
992 FROM jrn where jr_id=$1";
993 $array=$this->db->get_array($sql,array($this->jr_id));
994 if ( count($array) == 0 ) throw new Exception('Aucune ligne trouvée');
995 foreach ($array[0] as $key=>$val)
996 {
997 $this->det->$key=$val;
998 }
999 $sql="select n_text from jrn_note where jr_id=$1";
1000 $this->det->note=$this->db->get_value($sql,array($this->jr_id));
1001 $this->det->note=strip_tags($this->det->note);
1002 }
$SecUser db

References $array, $sql, $val, db, and jr_id.

Field Documentation

◆ $det

Acc_Detail::$det

Definition at line 972 of file acc_operation.class.php.

◆ $info

Acc_Detail::$info

Definition at line 974 of file acc_operation.class.php.

◆ $jr_id

Acc_Detail::$jr_id

Definition at line 973 of file acc_operation.class.php.


The documentation for this class was generated from the following file: