noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
ledger_search.php
Go to the documentation of this file.
1<?php
2//This file is part of NOALYSS and is under GPL
3//see licence.txt
4
5/**
6 * Called from Acc_Ledger_Search
7 * @var $this Acc_Ledger_Search
8 * @var $f_ledger ICheckBox inherited Acc_Ledger_Search
9 * @var $hid_jrn html string : hidden r_jrn from previous request inherited
10 * @var $f_date_start IDate inherited
11 * @var $f_date_end IDate inherited
12 * @var $f_date_paid_start IDate inherited
13 * @var $f_date_paid_end IDate inherited
14 * @var $date_start_hidden IDate inherited
15 * @var $date_end_hidden IDate inherited
16 * @var $f_amount_min INum inherited
17 * @var $f_amount_max INum inherited
18 * @var $f_accounting IPoste inherited
19 * @var $g_parameter Noalyss_Parameter_Folder global variable
20 * @var $tva_id_search ITva_Popup inherited
21 * @var $f_paid ISelect inherited
22 * @var $sCurrency Acc_Currency inherited
23 * @var $http HttpInput inherited
24 */
25?>
26
27<table id="<?=$this->div?>table_search">
28
29<tr>
30<td style="text-align:right;width:30em">
31<?php echo _('Dans le journal')?>
32</td>
33<td>
34 <?php echo $f_ledger; ?>
35 <span id="ledger_id<?php echo $this->div;?>">
36 <?php
37 echo $hid_jrn;
38 ?>
39 </span>
40</td>
41</tr>
42
43<tr>
44<td style="text-align:right;width:30em">
45<?php echo _('Et Compris entre les date')?>
46</td>
47<td>
48<?php echo $f_date_start->input(); ?> <?php echo _('et')?> <?php echo $f_date_end->input(); ?>
49
50</td>
51</tr>
52<tr>
53<td style="text-align:right;width:30em">
54<?php echo _('Et paiement compris entre les date ').Icon_Action::infobulle(36); ?>
55</td>
56<td>
57<?php echo $f_date_paid_start->input(); ?> <?php echo _('et')?> <?php echo $f_date_paid_end->input(); ?>
58<?php echo $date_start_hidden,$date_end_hidden;?>
59</td>
60</tr>
61
62<tr>
63<td style="text-align:right;width:30em">
64<?php echo _('Et contenant dans le libellé, pièce justificative ou n° interne')?>
65</td>
66
67<td>
68<?php echo $f_descript->input(); ?>
69</td>
70</tr>
71<tr>
72<td style="text-align:right;width:30em">
73<?php echo _('Et compris entre les montants')?>
74</td>
75<td >
76 <?php echo Icon_Action::clean_zone(uniqid(),sprintf("$('%s').value=0",$f_amount_min->id));
77 echo $f_amount_min->input(); ?>
78 <?php echo _('et')?> <?php
79 echo HtmlInput::button_action("=",sprintf("$('%s').value=%s.value",$f_amount_max->id,$f_amount_min->id) ,uniqid(), "smallbutton");
80 echo $f_amount_max->input(); ; ?>
81</td>
82</tr>
83<tr>
84<td style="text-align:right;width:30em">
85 <?php echo _('Et utilisant la fiche (quick code)')?>
86</td>
87<td>
88 <?php echo $f_qcode->input(); echo $f_qcode->search(); ?>
89</td>
90</tr>
91<tr>
92<td style="text-align:right;width:30em">
93 <?php echo _('Et utilisant le poste comptable').$info?>
94</td>
95
96<td>
97<?php
98 echo Icon_Action::clean_zone(uniqid(),sprintf("$('%s').value=''",$f_accounting->id));
99echo $f_accounting->input(); ?>
100</td>
101</tr>
102 <?php
103 // if TVA
104 if ( $g_parameter->MY_TVA_USE=="Y"):
105 ?>
106<tr>
107 <td style="text-align:right;width:30em">
108 <?=_("Code TVA")?>
109 </td>
110 <td>
111 <?=$tva_id_search->input()?>
112 </td>
113</tr>
114 <?php endif;?>
115<tr>
116<td style="text-align:right;width:30em">
117 <?php echo _('Etat')?>
118</td>
119
120<td>
121<?php echo $f_paid->input(); ?>
122</td>
123</tr>
124
125<tr>
126<td style="text-align:right;width:30em">
127 <?php echo _('Devise')?>
128</td>
129
130<td>
131<?php echo $sCurrency->input(); ?>
132</td>
133</tr>
134
135<tr>
136
137<td style="text-align:right;width:30em">
138
139 <?php
140 $iselect= new ISelect($this->div."tag_option");
141 $iselect->value=array(
142 array("value"=>0,"label"=>_("Toutes les étiquettes")),
143 array("value"=>1,"label"=>_("Au moins une étiquette"))
144 );
145
146 $iselect->set_value($http->request($this->div."tag_option","number",0));
147 echo $iselect->input();
148
149 ?>
150 <?php
151 echo Tag_Operation::select_tag_search($this->div);
152 ?>
153</td>
154 <td >
155 <span id="<?=$this->div?>tag_choose_td">
156 <?php
157 $aTag= $http->request($this->div."tag","string",0);
158 if (is_array($aTag) ) {
159 $nb_tag=count($aTag);
160 for ($j=0;$j< $nb_tag;$j++) {
161 $tag_operation=new Tag_Operation($this->cn,$aTag[$j]);
162 $tag_operation->update_search_cell($this->div);
163 }
164 }
165 ?>
166
167 </span>
168 </td>
169</tr>
170
171</table>
span($p_string, $p_extra='')
Definition ac_common.php:43
tr($p_string, $p_extra='')
Definition ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition ac_common.php:83
global $g_parameter
$opd_description style
$input_from cn
_("actif, passif,charge,...")
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
static clean_zone($id, $p_javascript, $p_style="")
concerns the tags linked to an accountancy writing
static select_tag_search($p_prefix)
Show a button to select tag for Search.
$all table
$tag_operation
Tags on operation.
$date_end_hidden
$iselect
Definition menu.inc.php:122