noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
Acc_Fin Class Reference

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

+ Inheritance diagram for Acc_Fin:
+ Collaboration diagram for Acc_Fin:

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
 

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 ()
 
- 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
 

Detailed Description

this class manage data from the QUANT_FIN table

Note
Data member are the column of the table

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

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented from Acc_Detail.

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

1313 {
1314 parent::__construct($p_cn,$p_jrid);
1315 $this->signature='FIN';
1316 }

Member Function Documentation

◆ compute_array()

Acc_Fin::compute_array ( )

Reimplemented from Acc_Detail.

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

1340 {
1341 $this->get();
1342 $array=parent::compute_array();
1343 $nb_array=count($this->det->array);
1344 $array['nb_item']=$nb_array;
1345
1346
1347 for ($i=0;$i<$nb_array;$i++) {
1348 $array["e_other".$i]=$this->db->get_value("select ad_value from fiche_detail where f_id=$1 and ad_id=23",
1349 array($this->det->array[$i]['qf_other']));
1350
1351 $array["e_other".$i."_amount"]=$this->det->array[$i]['qf_amount'];
1352 $array["e_other".$i."_comment"]=$this->det->jr_comment;
1353 }
1354 $array['correct']=1;
1355 return $array;
1356
1357 }
$SecUser db

References $array, $i, $nb_array, and db.

◆ get()

Acc_Fin::get ( )

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

Reimplemented from Acc_Detail.

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

1319 {
1320 parent::get();
1321 $sql="SELECT qf_id
1322 ,qf_bank
1323 ,jr_id
1324 ,qf_other
1325 ,qf_amount,j_id
1326 ,oc1.oc_amount
1327 ,oc1.oc_vat_amount
1328 ,oc1.oc_price_unit
1329 FROM quant_fin
1330 left join operation_currency oc1 using(j_id)
1331 where
1332 jr_id = $1";
1333 $this->det->array=$this->db->get_array($sql,array($this->jr_id));
1334 }
$op jr_id

References $sql, db, and jr_id.


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