noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
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...
 
- Public Member Functions inherited from Acc_Operation
 __construct ($p_cn)
 constructor set automatically the attributes user and periode
 
 __toString ()
 
 display_jrnx_detail ($p_table)
 display_jrnx_detail : get the data from get_jrnx_data and return a string with HTML code
 
 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.
 
 form_clone_operation ($p_id)
 create a form to recreate the operation and returns it, it works the same as when you want to correct an operation instead of confirming
 
 get_amount ()
 return amount of the jr_id
 
 get_currency_amount ()
 retrieve amount in currency for the operation
 
 get_data ($p_grpt)
 Get data from jrnx where p_grpt=jrnx(j_grpt)
 
 get_info ()
 retrieve info from the jrn_info, create 2 new arrays obj->info->command and obj->info->other the columns are the idx
 
 get_internal ()
 Return the internal value, the property jr_id must be set before.
 
 get_jrnx_detail ()
 retrieve data from jrnx
 
 get_ledger ()
 return the jrn_def_id from jrn
 
 get_quant ()
 retrieve data from the table QUANT_*
 
 get_sum_other_tax ()
 get the sum of other tax linked to this operation
 
 insert_jrn ()
 Insert into the table Jrn, the amount is computed from jrnx thanks the group id ($p_grpt)
 
 insert_jrnx ()
 Insert into the table Jrn The needed data are :
 
 insert_related_action ($p_string)
 
 operation_update_comment ($p_text)
 add a comment to the operation (jrn.jr_text)
 
 operation_update_date_limit ($p_text)
 add a limit of payment to the operation (jrn.jr_ech)
 
 save_info ($p_info, $p_type)
 Save into jrn_info.
 
 seek_group ()
 retrieve the grpt_id from jrn for a jr_id
 
 seek_internal ($p_internal)
 search an operation thankx it internal code
 
 set_id ($p_id)
 set the operation id (jrn.jr_id)
 
 set_paid ()
 flag the operation as paid
 
 update_comment ($p_text)
 add a comment to the line (jrnx.j_text)
 
 update_receipt ()
 set the pj of a operation in jrn. the jr_id must be set
 

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
 
 $desc
 
 $echeance
 
 $f_id
 
 $grpt
 
 $jr_id
 
 $jr_internal
 
 $jr_optype
 
 $jrn
 
 $jrn_id
 
 $jrnx_id
 
 $mt
 
 $periode
 
 $pj
 
 $poste
 
 $qcode
 < Qcode of item
 
 $signature
 
 $type
 
 $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.
 
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 1081 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 1085 of file acc_operation.class.php.

1086 {
1087 parent::__construct($p_cn,$p_jrid);
1088 $this->signature='ODS';
1089 $this->det=new stdClass();
1090 }

Member Function Documentation

◆ compute_array()

Acc_Misc::compute_array ( )

Reimplemented from Acc_Detail.

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

1125 {
1126 $this->get();
1127 $array=parent::compute_array();
1128 $nb_array=count($this->det->array);
1129 $array['nb_item']=$nb_array;
1130
1131 for ($i=0;$i<$nb_array;$i++) {
1132 $array["qc_".$i]=$this->det->array[$i]['j_qcode'];
1133 $array["poste".$i]=$this->det->array[$i]['j_poste'];
1134 $array["amount".$i]=$this->det->array[$i]['j_montant'];
1135 if ( $this->det->array[$i]['j_debit'] == 't') {
1136 $array["ck".$i]=1;
1137 }
1138 $array["ld".$i]=$this->det->array[$i]['j_text'];
1139 }
1140
1141 return $array;
1142
1143 }

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 1091 of file acc_operation.class.php.

1092 {
1093 parent::get();
1094 $sql="
1095SELECT jx1.j_id
1096 ,jx1.j_date
1097 ,jx1.j_montant
1098 ,jx1.j_poste
1099 ,jx1.j_grpt
1100 ,jx1.j_rapt
1101 ,jx1.j_jrn_def
1102 ,jx1.j_debit
1103 ,jx1.j_text
1104 ,jx1.j_centralized
1105 ,jx1.j_internal
1106 ,jx1.j_tech_user
1107 ,jx1.j_tech_date
1108 ,jx1.j_tech_per
1109 ,jx1.j_qcode
1110 ,jx1.f_id
1111 ,oc1.oc_amount
1112 FROM jrnx jx1
1113 left join operation_currency oc1 using(j_id)
1114 where
1115 jx1.j_grpt = $1
1116 order by jx1.j_debit desc,jx1.j_poste
1117";
1118 $this->det->array=$this->db->get_array($sql,array($this->det->jr_grpt_id));
1119 }
$SecUser db

References $sql, and db.

Field Documentation

◆ $array

Acc_Misc::$array

an array containing the data from JRNX

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

Referenced by compute_array().

◆ $signature

Acc_Misc::$signature

signature of the obj ODS

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


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