32 require_once NOALYSS_INCLUDE.
'/lib/class_impress.php';
33 require_once
'include/class_formulaire_param_detail.php';
34 $fp_id = HtmlInput::default_value_request(
'fp_id',
'-1');
39 $acc_tva->tva_id = $code_tva;
40 $acc_tva->tmp_val = $formtva;
41 $acc_tva->jrn_def_type = $code_jrn;
42 $acc_tva->p_id = $p_id;
43 $acc_tva->type_detail = 2;
44 $acc_tva->tt_id = $code_base;
45 $acc_tva->jrn_def_id = $p_ledger;
46 $acc_tva->date_paid=$p_paid;
47 if ($acc_tva->verify() == 1)
50 $html =
"Erreur dans la formule " . $acc_tva->errcode;
58 $acc_tva->display_row();
59 $html.=ob_get_contents();
62 $html.=$acc_tva->button_delete();
63 $html.=$acc_tva->button_modify();
68 $acc_formula->fp_formula = $formula_new;
69 $acc_formula->p_id = $p_id;
70 $acc_formula->type_detail = 1;
71 $acc_formula->jrn_def_id = $p_ledger;
72 $acc_formula->date_paid=$p_paid;
73 if ($acc_formula->verify() == 1)
76 $html = $acc_formula->errcode;
80 $fp_id = $acc_formula->fp_id;
84 $acc_formula->display_row();
85 $html.=ob_get_contents();
88 $html.=$acc_formula->button_delete();
89 $html.=$acc_formula->button_modify();
94 $acc_compute->fp_formula = $form_compute;
95 $acc_compute->p_id = $p_id;
96 $acc_compute->type_detail = 3;
97 $acc_compute->jrn_def_id = null;
98 if ($acc_compute->verify() == 1)
101 $html = $acc_compute->errcode;
104 $acc_compute->save();
105 $fp_id = $acc_compute->fp_id;
109 $acc_compute->display_row();
110 $html.=ob_get_contents();
113 $html.=$acc_compute->button_delete();
114 $html.=$acc_compute->button_modify();
117 case 'new_account_id':
119 $acc_account->tmp_val = $account_first;
120 $acc_account->with_tmp_val = $account_second;
121 $acc_account->p_id = $p_id;
122 $acc_account->type_detail = 4;
123 $acc_account->type_sum_account = $account_sum_type;
124 $acc_account->jrn_def_id = $p_ledger;
125 $acc_account->date_paid=$p_paid;
126 if ($acc_account->verify() == 1)
129 $html = $acc_account->errcode;
134 $child=HtmlInput::default_value_get(
"child", 0);
138 $acc_account->save();
139 $fp_id = $acc_account->fp_id;
141 $acc_account->display_row();
142 $html.=ob_get_contents();
145 $html.=$acc_account->button_delete();
146 $html.=$acc_account->button_modify();
149 $acc_account->type_detail = 6;
150 $acc_account->save();
151 $fp_id = $acc_account->fp_id;
153 $acc_account->display_row();
154 $html.=ob_get_contents();
157 $html.=$acc_account->button_delete();
158 $html.=$acc_account->button_modify();
163 case 'new_reconcile_id':
165 $acc_account->tmp_val = $acrec_first;
166 $acc_account->with_tmp_val = $acrec_second;
167 $acc_account->operation_pcm_val = $acrec_third;
168 $acc_account->p_id = $p_id;
169 $acc_account->type_detail = 5;
170 $acc_account->type_sum_account = $account_sum_type;
171 $acc_account->jrn_def_id = $p_ledger;
172 if ($acc_account->verify() == 1)
175 $html = $acc_account->errcode;
178 $acc_account->save();
179 $fp_id = $acc_account->fp_id;
183 $acc_account->display_row();
184 $html.=ob_get_contents();
187 $html.=$acc_account->button_delete();
188 $html.=$acc_account->button_modify();
195 header(
'Content-type: text/xml; charset=UTF-8');
197 <?xml version=
"1.0" encoding=
"UTF-8"?>
poste comptable utilisé avec le poste comptable, choix entre diff crédit - debit, diff débit-crédit...
poste comptable utilisé avec le poste comptable, choix entre diff crédit - debit, diff débit-crédit...