19 select id, temp_bank_id,jr_id,f_id
21 importbank.suggest_bank
34 <?php echo _(
'Journal').
" ".h($jrn_name) .
" ". _(
'Fiche ').h($jrn_account)?>
40 Filtrer : <?php echo
$filter->input()?>
41 <?php echo HtmlInput::request_to_hidden(array(
'gDossier',
'plugin_code',
'ac',
'sb',
'sa',
'id'))?>
42 <?php echo HtmlInput::submit(
'refresh',
'Recharger')?>
48 <form method=
"get" id=
"show_list_frm2" onsubmit=
"return confirm_box('show_list_frm2','Vous confirmez?')">
49 <?php echo HtmlInput::request_to_hidden(array(
'gDossier',
'plugin_code',
'ac',
'sb',
'sa',
'id',
$filter->name))?>
50 <?php echo HtmlInput::hidden(
'form_action2',
'');?>
51 <?php echo HtmlInput::submit(
'delete_record',_(
'Effacer'),
52 ' onclick="$(\'form_action2\').value=\'delete_record\';"');?>
53 <?php echo HtmlInput::submit(
'transfer_record',_(
'Transfèrer'),
54 ' onclick="$(\'form_action2\').value=\'transfer_record\';"');?>
55 <?php echo HtmlInput::submit(
'suggest_record',_(
'Reconciliation automatique'),
56 ' onclick="$(\'form_action2\').value=\'reconcile_auto\';"');?>
57 <?php echo HtmlInput::submit(
'selected_record',_(
'Opérations sélectionnées'),
58 ' onclick="$(\'form_action2\').value=\'selected_record\';"');?>
59 <select
name=
"select_action" id=
"select_action">
62 <optgroup
label=
"<?php echo _("Contrepartie
")?>">
63 <option
value=
"1"><?php echo _(
"Donner la contrepartie")?></option>
64 <option value=
"2"><?php echo _(
"Supprimer la contrepartie")?></option>
66 <optgroup label=
"<?php echo _("Réconciliation
")?>">
68 <option value=
"4"><?php echo _(
"Valider réconciliation")?></option>
69 <option value=
"3"><?php echo _(
"Supprimer réconciliation")?></option>
71 <optgroup label=
"<?php echo _("Suppression
")?>">
72 <option value=
"5"><?php echo _(
"Marquer pour suppression")?></option>
73 <option value=
"6"><?php echo _(
"Enlever le marquage de suppression")?></option>
79 <?php echo HtmlInput::filter_table(
'record_tb_id',
'1,2,3,4,5,6,7',1); ?>
80 <
table id=
"record_tb_id" class=
"sortable" >
82 <th
class=
"sorttable_nosort">
90 <th
class=
" sorttable_sorted_reverse" >Date <span
id=
"sorttable_sortrevind">&
nbsp;▴</span></th>
95 <th>Opération liée</th>
102 for ($i=0;$i<Database::num_row(
$ret);$i++):
103 $row=Database::fetch_array(
$ret,$i);
107 $class=($i%2==0)?
' class="even"':
'class="odd"';
109 $javascript=
"onclick=\"reconcilie('div${row['id']}','$gdossier','${row['id']}','$plugin_code')\"";
112 <tr <?php echo $class?> >
113 <td sorttable_customkey=
"<?php echo $row['is_checked']?>">
119 $check->javascript=$checked_js;
126 <?php echo
$row[
'ref_operation']?>
129 <TD sorttable_customkey=
"<?php echo $row['tp_date']; ?>">
130 <?php echo HtmlInput::anchor(format_date(
$row[
'tp_date']),
"",
$javascript)?>
133 <td
class=
"num" sorttable_customkey=
"<?php echo $row['amount']; ?>">
143 <td
id=
"tiers<?php echo $row['id']?>">
145 if (
$row[
'f_id'] !=
"") {
147 $qcode=
$fiche->get_quick_code();
148 if ( $qcode != null ) {
149 echo HtmlInput::card_detail($qcode);
154 $qcode=
$fiche->get_quick_code();
155 if ( $qcode != null ) {
156 echo HtmlInput::card_detail($qcode, _(
'Valide').
"?");
159 $text= sprintf(_(
'Possibles %d'),count(
$a_suggest));
160 $js_suggest=sprintf(
"onclick=\"display_suggest('%s','%s','%s')\"",
162 echo HtmlInput::anchor($text,
"", $js_suggest);
167 <td
id=
"concop<?php echo $row['id']?>">
169 if (
$row[
'tp_rec'] !=
"") {
170 $a_rec=explode(
",",
$row[
'tp_rec']);
171 $nb_arec=count($a_rec);
173 for (
$j=0 ;
$j < $nb_arec;
$j++) {
174 $ref=
$conx3->get_value(
'select jr_internal from jrn where jr_id=$1',
176 echo $virg . HtmlInput::detail_op($a_rec[$j],
$ref);
181 $ref=
$conx3->get_value(
'select jr_internal from jrn where jr_id=$1',
183 echo HtmlInput::detail_op(
$a_suggest[0][
'jr_id'],_(
'Valide?').
$ref);
204 <form method=
"get" id=
"show_list_frm" onsubmit=
"return confirm_box('show_list_frm','Vous confirmez?')">
205 <?php echo HtmlInput::request_to_hidden(array(
'gDossier',
'plugin_code',
'ac',
'sb',
'sa',
'id',
$filter->name))?>
206 <?php echo HtmlInput::hidden(
'form_action',
'');?>
207 <?php echo HtmlInput::submit(
'delete_record',_(
'Effacer'),
208 ' onclick="$(\'form_action\').value=\'delete_record\';"');?>
209 <?php echo HtmlInput::submit(
'transfer_record',_(
'Transfèrer'),
210 ' onclick="$(\'form_action\').value=\'transfer_record\';"');?>
213 $(
'select_action').onchange=
function(){
215 if ( this.value == 1 ) {
218 new Ajax.Request(
'ajax.php',
222 'act':
'display_tiers',
223 'status':<?php echo
$filter->selected;?>,
224 'plugin_code':
'<?php echo $plugin_code;?>',
225 'import_id':<?php echo
$array[0][
'id'];?>,
226 'ac':
'<?php echo $_REQUEST['ac
']?>'
228 onSuccess:
function(req,json){
229 remove_waiting_box();
230 var pos=fixed_position(50,100);
232 var div1= {
"id":
"select_tiers_div",
233 "cssclass":
"inner_box",
235 "html":req.responseText
239 req.responseText.evalScripts();
241 error_message(e.getMessage);
248 function impb_check_all() {
250 var check=($(
'check_all').checked)?1:0;
251 var gDossier=
'<?php echo $dossier_id; ?>';
252 var plugin_code=
'<?php echo $plugin_code; ?>';
254 var tb=document.getElementById(
'record_tb_id');
255 var a=tb.getElementsByTagName(
'input');
259 for (i = 0 ; i < a.length;i++) {
260 if (a[i].
id ==
'check_all') {
continue;}
263 if (! a[i].parentNode.parentNode.visible()) {
273 row_id=row_id.replace(/temp_bank/,
"");
277 remove_waiting_box();
for($i=0;$i< Database::num_row($ret);$i++) $row
static color_status($id)
return the HTML style for the status White : new green : transfered red : error
if($a_suggest==false) $class
if(isset($_POST['remove'])) $array
function impb_check_item(p_dossier, p_plugin_code, p_row_id)
if a row is checked or unchecked, save it into the table temp_bank.is_checked