Plugins  LAST
 All Data Structures Files Functions Variables Pages
Public Member Functions | Static Public Member Functions
RAPAV_Account 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_Account:
Inheritance graph
Collaboration diagram for RAPAV_Account:
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 266 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_Account::display_row ( )

Definition at line 269 of file class_formulaire_param_detail.php.

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

270  {
271  global $cn;
272  $ledger = RAPAV::get_ledger_name($this->jrn_def_id);
273  $paid = RAPAV::str_date_type($this->date_paid);
274  $total_type_account = $cn->get_value('select tt_label from rapport_advanced.total_type_account where tt_id=$1', array($this->type_sum_account));
275  printf("Total %s poste comptable %s utilisé avec le poste comptable %s utilisant $ledger %s", $total_type_account, $this->tmp_val, $this->with_tmp_val, $paid);
276  }
static str_date_type($p_type)
Compute the string to display for date.
Definition: class_rapav.php:58
static get_ledger_name($p_jrn)
Return the ledger's name of p_jrn.
Definition: class_rapav.php:35
global $cn
RAPAV_Account::input ( )

Definition at line 278 of file class_formulaire_param_detail.php.

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

279  {
280  global $cn;
281  $sum_type = new ISelect('account_sum_type');
282  $sum_type->value = $cn->make_array("select tt_id, tt_label from rapport_advanced.total_type_account ");
283  $sum_type->selected=$this->type_sum_account;
284  $account = new IPoste("account_first", "", "account_first_id");
285  $account->size = 10;
286  $account->label = _("Recherche poste");
287  $account->value=$this->tmp_val;
288  $account->set_attribute('gDossier', dossier::id());
289  $account->set_attribute('account', $account->id);
290 
291  $account_second = new IPoste("account_second", "", "account_second_id");
292  $account_second->size = 10;
293  $account_second->label = _("Recherche poste");
294  $account_second->set_attribute('gDossier', dossier::id());
295  $account_second->set_attribute('account', $account_second->id);
296  $account_second->value=$this->with_tmp_val;
297  echo '<p>';
298  echo 'Calculer ';
299  echo $sum_type->input();
300  echo '</p>';
301  echo '<p>';
302  echo _('du poste comptable') . '(1)'." ". HtmlInput::infobulle(203);
303  echo $account->input();
304  echo '</p>';
305  echo '<p>';
306  echo _(' utilisé avec le poste comptable'). " " . HtmlInput::infobulle(203);
307  echo $account_second->input();
308  echo '</p>';
309  $this->input_date_paiement();
310  $this->input_ledger();
311  }
$select_type id
input_date_paiement()
Display a select for the date.
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 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(), input(), and RAPAV_Reconcile\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_Account::new_row ( )
static

Definition at line 312 of file class_formulaire_param_detail.php.

References $obj.

313  {
314  $obj=new RAPAV_Account();
315  $obj->input();
316  }
poste comptable utilisé avec le poste comptable, choix entre diff crédit - debit, diff débit-crédit...
RAPAV_Account::verify ( )

Definition at line 317 of file class_formulaire_param_detail.php.

318  {
319 
320  if (trim($this->tmp_val) == "" || trim($this->with_tmp_val) == "")
321  {
322  $this->errcode = _(" Un poste comptable est manquant");
323  return 1;
324  }
325  return 0;
326  }

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