Plugins  LAST
 All Data Structures Files Functions Variables Pages
Public Member Functions | Static Public Member Functions
RAPAV_Reconcile Class Reference

poste comptable utilisé avec le poste comptable, choix entre diff crédit - debit, diff débit-crédit, crédit, débit More...

Inheritance diagram for RAPAV_Reconcile:
Inheritance graph
Collaboration diagram for RAPAV_Reconcile:
Collaboration graph

Public Member Functions

 display_row ()
 
 input ()
 
 verify ()
 
 input_new ($p_id)
 
 input_new_child ($p_id)
 
 button_delete ()
 
 button_modify ()
 
 input_ledger ()
 display a choice of ledger cn More...
 
 input_date_paiement ()
 Display a select for the date. More...
 

Static Public Member Functions

static new_row ()
 

Detailed Description

poste comptable utilisé avec le poste comptable, choix entre diff crédit - debit, diff débit-crédit, crédit, débit

Definition at line 334 of file class_formulaire_param_detail.php.

Member Function Documentation

Formulaire_Param_Detail::button_delete ( )
inherited

Definition at line 53 of file class_formulaire_param_detail.php.

References $_REQUEST, $html, and p_id.

54  {
55  $html='<td id="del_' . $this->fp_id . '">';
56  $html.=HtmlInput::anchor("Effacer", "", sprintf("onclick=\"delete_param_detail('%s','%s','%s','%s','%s','%s')\""
57  , $_REQUEST['plugin_code'], $_REQUEST['ac'], $_REQUEST['gDossier'], $this->fp_id,$this->p_id,$this->type_detail));
58  $html.= '</td>';
59  return $html;
60  }
$html
Definition: ajax.php:32
$oPeriode p_id
$_REQUEST['sb']
Definition: am_print.php:39
Formulaire_Param_Detail::button_modify ( )
inherited

Definition at line 61 of file class_formulaire_param_detail.php.

References $_REQUEST, and $html.

62  {
63  $html='<td id="mod_' . $this->fp_id . '">';
64  $html.=HtmlInput::anchor("Modifier", "", sprintf("onclick=\"modify_param_detail('%s','%s','%s','%s')\""
65  , $_REQUEST['plugin_code'], $_REQUEST['ac'], $_REQUEST['gDossier'], $this->fp_id));
66  $html.= '</td>';
67  return $html;
68  }
$html
Definition: ajax.php:32
$_REQUEST['sb']
Definition: am_print.php:39
RAPAV_Reconcile::display_row ( )

Definition at line 337 of file class_formulaire_param_detail.php.

References $cn, $ledger, and RAPAV\get_ledger_name().

338  {
339  global $cn;
340  $total_type_account = $cn->get_value('select tt_label from rapport_advanced.total_type_account where tt_id=$1', array($this->type_sum_account));
341  $ledger = RAPAV::get_ledger_name($this->jrn_def_id);
342  printf("Total %s poste comptable %s utilisé avec le poste comptable %s rapprochée dans la période donnée
343  avec une opération utilisant le poste comptable %s utilisant $ledger", $total_type_account, $this->tmp_val, $this->with_tmp_val, $this->operation_pcm_val);
344  }
static get_ledger_name($p_jrn)
Return the ledger's name of p_jrn.
Definition: class_rapav.php:35
global $cn
RAPAV_Reconcile::input ( )

Definition at line 346 of file class_formulaire_param_detail.php.

References $cn, id, and Formulaire_Param_Detail\input_ledger().

347  {
348  global $cn;
349  $sum_type = new ISelect('account_sum_type');
350  $sum_type->value = $cn->make_array("select tt_id, tt_label from rapport_advanced.total_type_account ");
351  $sum_type->selected=$this->type_sum_account;
352  $account = new IPoste("acrec_first", "", "acrec_first_id");
353  $account->size = 10;
354  $account->label = _("Recherche poste");
355  $account->set_attribute('gDossier', dossier::id());
356  $account->set_attribute('account', $account->id);
357  $account->value=$this->tmp_val;
358 
359  $account_second = new IPoste("acrec_second", "", "acrec_second_id");
360  $account_second->size = 10;
361  $account_second->label = _("Recherche poste");
362  $account_second->set_attribute('gDossier', dossier::id());
363  $account_second->set_attribute('account', $account_second->id);
364  $account_second->value=$this->with_tmp_val;
365 
366  $account_third = new IPoste("acrec_third", "", "acrec_third_id");
367  $account_third->size = 10;
368  $account_third->label = _("Recherche poste");
369  $account_third->set_attribute('gDossier', dossier::id());
370  $account_third->set_attribute('account', $account_third->id);
371  $account_third->value=$this->operation_pcm_val;
372 
373  echo '<p>';
374  echo 'Calculer ';
375  echo $sum_type->input();
376  echo '</p>';
377  echo '<p>';
378  echo 'du poste comptable ' . HtmlInput::infobulle(203);
379  echo $account->input();
380  echo '</p>';
381  echo '<p>';
382  echo ' utilisé avec le poste comptable ' . HtmlInput::infobulle(203);
383  echo $account_second->input();
384  echo '</p>';
385  echo '<p>';
386  echo ' rapproché avec une opération dans la période donnée utilisant le poste comptable ' . HtmlInput::infobulle(203);
387  echo $account_third->input();
388 
389  echo '</p>';
390  $this->input_ledger();
391  }
$select_type id
input_ledger()
display a choice of ledger cn
global $cn
Formulaire_Param_Detail::input_date_paiement ( )
inherited

Display a select for the date.

Definition at line 91 of file class_formulaire_param_detail.php.

Referenced by RAPAV_Formula\input(), RAPAV_Account_Tva\input(), and RAPAV_Account\input().

92  {
93  $s_date = new ISelect('p_paid');
94  $s_date->value = array();
95  $s_date->value[] = array("value" => 0, "label" => 'Date d\'opération');
96  $s_date->value[] = array("value" => 1, "label" => 'Date de paiement');
97  $s_date->value[] = array("value" => 2, "label" => 'Date d\'échéance');
98  echo '<p> Si la date donnée concerne la date de paiement ou d\'écheance, cela limitera la recherche aux journaux VEN et ACH ';
99  echo HtmlInput::infobulle(36);
100  if ( $this->fp_id != -1)
101  {
102  $s_date->selected=$this->date_paid;
103  }
104  echo $s_date->input();
105  echo '</p>';
106  }
Formulaire_Param_Detail::input_ledger ( )
inherited

display a choice of ledger cn

Definition at line 73 of file class_formulaire_param_detail.php.

References $cn, and $select.

Referenced by RAPAV_Formula\input(), RAPAV_Account_Tva\input(), RAPAV_Account\input(), and input().

74  {
75  global $cn;
76  $select = new ISelect('p_ledger');
77  $a_ledger = $cn->make_array('select jrn_def_id,jrn_def_name from jrn_def order by 2', 1);
78  $a_ledger[0]['label'] = '-- Tous les journaux -- ';
79  $select->value = $a_ledger;
80  if ( $this->fp_id != -1)
81  {
82  $select->selected=$this->jrn_def_id;
83  }
84 
85  echo '<p> Filtrage par journal ' . $select->input() . '</p>';
86  }
global $cn
Formulaire_Param_Detail::input_new (   $p_id)
inherited

Definition at line 36 of file class_formulaire_param_detail.php.

References $cn.

37  {
38  global $cn;
39  $parent = new Formulaire_Param($p_id);
40  echo HtmlInput::title_box('Formule', 'param_detail_div');
41  echo '<h2>' . $parent->p_code . " " . $parent->p_libelle . '</h2>';
42 
43  require_once 'template/param_detail_new.php';
44  }
manage the table rapport_avance.formulaire_param
global $cn
Formulaire_Param_Detail::input_new_child (   $p_id)
inherited

Definition at line 45 of file class_formulaire_param_detail.php.

References $cn.

45  {
46  global $cn;
47  $parent = new Formulaire_Param($p_id);
48  echo HtmlInput::title_box('Formule', 'param_detail_div');
49  echo '<h2>' . $parent->p_code . " " . $parent->p_libelle . '</h2>';
50 
51  require_once 'template/param_detail_new_child.php';
52  }
manage the table rapport_avance.formulaire_param
global $cn
static RAPAV_Reconcile::new_row ( )
static

Definition at line 392 of file class_formulaire_param_detail.php.

References $obj.

393  {
394  $obj=new RAPAV_Reconcile();
395  $obj->input();
396  }
poste comptable utilisé avec le poste comptable, choix entre diff crédit - debit, diff débit-crédit...
RAPAV_Reconcile::verify ( )

Definition at line 397 of file class_formulaire_param_detail.php.

398  {
399 
400  if (trim($this->tmp_val) == "" || trim($this->with_tmp_val) == "" || trim($this->operation_pcm_val) == '')
401  {
402  $this->errcode = " Un poste comptable est manquant";
403  return 1;
404  }
405  return 0;
406  }

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