374 |
// Get the jrn type |
// Get the jrn type |
375 |
$jrn_prop=GetJrnProp($p_cn,$row['jrn_def_id'],1); |
$jrn_prop=GetJrnProp($p_cn,$row['jrn_def_id'],1); |
376 |
$positive=0; |
$positive=0; |
377 |
if ( $jrn_prop['jrn_def_type'] == 'FIN' ) { |
if ( $positive=1 && $jrn_prop['jrn_def_type'] == 'FIN' ) { |
378 |
$positive = CountSql($p_cn,"select * from jrn inner join jrnx on jr_grpt_id=j_grpt ". |
$positive = CountSql($p_cn,"select * from jrn inner join jrnx on jr_grpt_id=j_grpt ". |
379 |
" where jr_id=".$row['jr_id']." and (j_poste like '55%' or j_poste like '57%' )". |
" where jr_id=".$row['jr_id']." and (j_poste like '55%' or j_poste like '57%' )". |
380 |
" and j_debit='f'"); |
" and j_debit='f'"); |