fix bug CA
This commit is contained in:
parent
5f78dd8d9a
commit
f2e1c2dddf
2 changed files with 14 additions and 13 deletions
|
|
@ -266,16 +266,16 @@ if ( isset($_POST['update_record']) ) {
|
|||
foreach( $array_jid as $row_ca) {
|
||||
echo_debug(__FILE__.':'.__LINE__,"array is ",$row_ca);
|
||||
if ( ereg("^[6,7]+",$row_ca['j_poste'])) {
|
||||
echo_debug(__FILE__.':'.__LINE__,"count is ",$count);
|
||||
$op=new operation($cn);
|
||||
$op->delete_by_jid($row_ca['j_id']);
|
||||
$op->j_id=$row_ca['j_id'];
|
||||
$op->oa_debit=$row_ca['j_debit'];
|
||||
$op->oa_date=$row_ca['j_date'];
|
||||
$op->oa_group=$group;
|
||||
$op->oa_description=$_POST['comment'];
|
||||
$op->save_form_plan($_POST,$count);
|
||||
$count++;
|
||||
echo_debug(__FILE__.':'.__LINE__,"count is ",$count);
|
||||
$op=new operation($cn);
|
||||
$op->delete_by_jid($row_ca['j_id']);
|
||||
$op->j_id=$row_ca['j_id'];
|
||||
$op->oa_debit=$row_ca['j_debit'];
|
||||
$op->oa_date=$row_ca['j_date'];
|
||||
$op->oa_group=$group;
|
||||
$op->oa_description=$_POST['comment'];
|
||||
$op->save_form_plan($_POST,$count);
|
||||
$count++;
|
||||
} //if ereg
|
||||
}//foreach
|
||||
}// if ( $own->MY_ANALYTIC != "un" )
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ function ShowOperationExpert($p_cn,$p_jr_id,$p_mode=1)
|
|||
$col_vide="<TD></TD>";
|
||||
$disable=($p_mode==0)?"disabled":"";
|
||||
$str_dossier=dossier::get();
|
||||
|
||||
$count=0;
|
||||
for ( $i =0 ; $i < sizeof($l_array); $i++) {
|
||||
$content=$l_array[$i] ;
|
||||
|
||||
|
|
@ -125,7 +125,8 @@ function ShowOperationExpert($p_cn,$p_jr_id,$p_mode=1)
|
|||
if ( $own->MY_ANALYTIC != "un" && ereg("^[6,7]+",$content['j_poste']))
|
||||
{
|
||||
|
||||
$r.=display_table_ca($p_cn,$i,$content['j_id'],$own,$p_mode,$content['j_montant']);
|
||||
$r.=display_table_ca($p_cn,$count,$content['j_id'],$own,$p_mode,$content['j_montant']);
|
||||
$count++;
|
||||
}
|
||||
|
||||
$r.="</TR>";
|
||||
|
|
@ -327,8 +328,8 @@ function ShowOperationUser($p_cn,$p_jr_id,$p_mode=1)
|
|||
if ( $own->MY_ANALYTIC != "un" && ereg("^[6,7]+",$content['j_poste']))
|
||||
{
|
||||
$r.=display_table_ca($p_cn,$i_march,$row->j_id,$own,$p_mode,$tot_tva);
|
||||
$i_march++;
|
||||
}
|
||||
$i_march++;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue