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

this class manage data from the JRNX and JRN table More...

+ Inheritance diagram for Acc_Misc:
+ Collaboration diagram for Acc_Misc:

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...
 
 __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

 $array
 
 $signature
 
- Data Fields inherited from Acc_Detail
 $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

this class manage data from the JRNX and JRN table

Note
Data member are the column of the table

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

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented from Acc_Detail.

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

1029 {
1030 parent::__construct($p_cn,$p_jrid);
1031 $this->signature='ODS';
1032 $this->det=new stdClass();
1033 }

Member Function Documentation

◆ compute_array()

Acc_Misc::compute_array ( )

Reimplemented from Acc_Detail.

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

1048 {
1049 $this->get();
1050 $array=parent::compute_array();
1051 $nb_array=count($this->det->array);
1052 $array['nb_item']=$nb_array;
1053
1054 for ($i=0;$i<$nb_array;$i++) {
1055 $array["qc_".$i]=$this->det->array[$i]['j_qcode'];
1056 $array["poste".$i]=$this->det->array[$i]['j_poste'];
1057 $array["amount".$i]=$this->det->array[$i]['j_montant'];
1058 if ( $this->det->array[$i]['j_debit'] == 't') {
1059 $array["ck".$i]=1;
1060 }
1061 $array["ld".$i]=$this->det->array[$i]['j_text'];
1062 }
1063
1064 return $array;
1065
1066 }

References $array, $i, and $nb_array.

◆ get()

Acc_Misc::get ( )

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

Reimplemented from Acc_Detail.

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

1035 {
1036 parent::get();
1037 $sql="SELECT j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def,
1038 j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date,
1039 j_tech_per, j_qcode,f_id
1040 FROM jrnx where j_grpt = $1 order by j_debit desc,j_poste";
1041 $this->det->array=$this->db->get_array($sql,array($this->det->jr_grpt_id));
1042 }
$SecUser db

References $sql, and db.

Field Documentation

◆ $array

Acc_Misc::$array

an array containing the data from JRNX

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

Referenced by compute_array().

◆ $signature

Acc_Misc::$signature

signature of the obj ODS

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


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