Plugins  LAST
 All Data Structures Files Functions Variables Pages
Public Member Functions | Static Public Member Functions
RAPAV_Compute Class Reference
Inheritance diagram for RAPAV_Compute:
Inheritance graph
Collaboration diagram for RAPAV_Compute:
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 ($p_id)
 

Detailed Description

Definition at line 229 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_Compute::display_row ( )

Definition at line 232 of file class_formulaire_param_detail.php.

233  {
234  printf("Total des codes du formulaire %s", $this->fp_formula);
235  }
RAPAV_Compute::input ( )

Definition at line 237 of file class_formulaire_param_detail.php.

References $_REQUEST, $cn, and p_id.

238  {
239  global $cn;
240  $f_id = $cn->get_value("select f_id from rapport_advanced.formulaire_param where p_id=$1", array($this->p_id));
241  $account = new IText("form_compute");
242  $account->size = 50;
243  $account->value=$this->fp_formula;
244  echo $account->input();
245  echo HtmlInput::button('rapav_search_code_bt', 'Cherche codes', sprintf(" onclick=\"rapav_search_code('%s','%s','%s','%s')\"", $_REQUEST['ac'], $_REQUEST['plugin_code'], $_REQUEST['gDossier'], $f_id));
246  }
$oPeriode p_id
$_REQUEST['sb']
Definition: am_print.php:39
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 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_Compute::new_row (   $p_id)
static

Definition at line 247 of file class_formulaire_param_detail.php.

References $obj.

248  {
249  $obj=new RAPAV_Compute();
250  $obj->p_id=$p_id;
251  $obj->input();
252  }
RAPAV_Compute::verify ( )

Definition at line 253 of file class_formulaire_param_detail.php.

References $errcode, $ret, and RAPAV\verify_compute().

254  {
255  global $errcode;
256  $ret = RAPAV::verify_compute($this->fp_formula);
257  $this->errcode = $errcode;
258  return $ret;
259  }
$ret
static verify_compute($p_formula)
check if the formula is valid, return 1 for an error and set errcode to the error msg errcode is glob...

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