Formulaire_Param_Detail::button_delete |
( |
| ) |
|
|
inherited |
Formulaire_Param_Detail::button_modify |
( |
| ) |
|
|
inherited |
RAPAV_Account_Tva::display_row |
( |
| ) |
|
Definition at line 156 of file class_formulaire_param_detail.php.
References $cn, $ledger, RAPAV\get_ledger_name(), and RAPAV\str_date_type().
160 $type_total = $cn->get_value(
"select tt_label from rapport_advanced.total_type where tt_id=$1", array($this->tt_id));
162 printf(
"Poste comptable %s avec le code tva %s (%s) dans le journal de type %s [ %s ] $ledger %s", $this->tmp_val, $this->tva_id, $this->tva_id, $this->jrn_def_type, $type_total, $paid);
static str_date_type($p_type)
Compute the string to display for date.
static get_ledger_name($p_jrn)
Return the ledger's name of p_jrn.
RAPAV_Account_Tva::input |
( |
| ) |
|
Definition at line 165 of file class_formulaire_param_detail.php.
References $cn, $select, $tva, $tva_id, id, Formulaire_Param_Detail\input_date_paiement(), and Formulaire_Param_Detail\input_ledger().
168 $account =
new IPoste(
"formtva",
"",
"formtva_id");
170 $account->label = _(
"Recherche poste");
171 $account->set_attribute(
'gDossier',
dossier::id());
172 $account->set_attribute(
'noquery', 1);
173 $account->set_attribute(
'account', $account->id);
174 $account->value=$this->tmp_val;
176 $tva =
new ITva_Popup(
"code_tva");
177 $tva->id = HtmlInput::generate_id(
"code_tva");
181 $select =
new ISelect(
'code_jrn');
183 array(
'value' =>
'VEN',
'label' =>
'journaux Vente'),
184 array(
'value' =>
'ACH',
'label' =>
'journaux Achat')
186 $select->selected=$this->jrn_def_type;
188 echo
'<tr><td>Poste comptable</td>';
189 echo td($account->input());
191 echo td(
'TVA') . td(
$tva->input());
193 echo td(_(
'Choix du type de journal ')) . td(
$select->input());
196 $code_base =
new ISelect(
'code_base');
197 $code_base->value = $cn->make_array(
"select tt_id,tt_label from rapport_advanced.total_type order by 2");
198 $code_base->selected=$this->tt_id;
199 echo td(
"Type de total");
200 echo td($code_base->input());
if(isset($_POST['save'])) $tva
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(), input(), and RAPAV_Account\input().
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)
102 $s_date->selected=$this->date_paid;
104 echo $s_date->input();
Formulaire_Param_Detail::input_ledger |
( |
| ) |
|
|
inherited |
Formulaire_Param_Detail::input_new |
( |
|
$p_id | ) |
|
|
inherited |
Definition at line 36 of file class_formulaire_param_detail.php.
References $cn.
40 echo HtmlInput::title_box(
'Formule',
'param_detail_div');
41 echo
'<h2>' . $parent->p_code .
" " . $parent->p_libelle .
'</h2>';
43 require_once
'template/param_detail_new.php';
Formulaire_Param_Detail::input_new_child |
( |
|
$p_id | ) |
|
|
inherited |
Definition at line 45 of file class_formulaire_param_detail.php.
References $cn.
48 echo HtmlInput::title_box(
'Formule',
'param_detail_div');
49 echo
'<h2>' . $parent->p_code .
" " . $parent->p_libelle .
'</h2>';
51 require_once
'template/param_detail_new_child.php';
static RAPAV_Account_Tva::new_row |
( |
| ) |
|
|
static |
RAPAV_Account_Tva::verify |
( |
| ) |
|
Definition at line 211 of file class_formulaire_param_detail.php.
References $cn.
214 if (trim($this->tmp_val) ==
"")
216 $this->errcode =
'Poste comptable est vide';
219 $count = $cn->get_value(
"select count(*) from tva_rate where tva_id=$1", array($this->tva_id));
222 $this->errcode =
'Code TVA inexistant';
The documentation for this class was generated from the following file: