155 |
// Show list of sell |
// Show list of sell |
156 |
// Date - date of payment - Customer - amount |
// Date - date of payment - Customer - amount |
157 |
$sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; |
$sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; |
158 |
$list=ListJrn($cn,$_GET['p_jrn'],$sql); |
$step=$_SESSION['g_pagesize']; |
159 |
|
$page=(isset($_GET['offset']))?$_GET['page']:1; |
160 |
|
$offset=(isset($_GET['offset']))?$_GET['offset']:0; |
161 |
|
|
162 |
|
list($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); |
163 |
|
$bar=jrn_navigation_bar($offset,$max_line,$step,$page); |
164 |
|
|
165 |
|
echo $bar; |
166 |
echo $list; |
echo $list; |
167 |
|
echo $bar; |
168 |
|
|
169 |
echo '</div>'; |
echo '</div>'; |
170 |
} |
} |
171 |
if ( $action == 'voir_jrn_non_paye' ) { |
if ( $action == 'voir_jrn_non_paye' ) { |
177 |
|
|
178 |
// Show list of unpaid sell |
// Show list of unpaid sell |
179 |
// Date - date of payment - Customer - amount |
// Date - date of payment - Customer - amount |
180 |
|
// Nav. bar |
181 |
|
$step=$_SESSION['g_pagesize']; |
182 |
|
$page=(isset($_GET['offset']))?$_GET['page']:1; |
183 |
|
$offset=(isset($_GET['offset']))?$_GET['offset']:0; |
184 |
|
|
185 |
$sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; |
$sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$_GET['p_jrn'] ; |
186 |
$list=ListJrn($cn,$_GET['p_jrn'],$sql); |
list($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); |
187 |
$sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; |
$sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$_GET['p_jrn'] ; |
188 |
$list2=ListJrn($cn,$_GET['p_jrn'],$sql); |
list($max_line2,$list2)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); |
189 |
|
|
190 |
|
// Get the max line |
191 |
|
$m=($max_line2>$max_line)?$max_line2:$max_line; |
192 |
|
$bar2=jrn_navigation_bar($offset,$m,$step,$page); |
193 |
|
|
194 |
echo '<div class="u_redcontent">'; |
echo '<div class="u_redcontent">'; |
195 |
|
echo $bar2; |
196 |
echo '<h2 class="info"> Echeance dépassée </h2>'; |
echo '<h2 class="info"> Echeance dépassée </h2>'; |
197 |
echo $list; |
echo $list; |
198 |
echo '<h2 class="info"> Non Payée </h2>'; |
echo '<h2 class="info"> Non Payée </h2>'; |
199 |
echo $list2; |
echo $list2; |
200 |
|
echo $bar2; |
201 |
echo '</div>'; |
echo '</div>'; |
202 |
} |
} |
203 |
|
|