/[phpcompta]/phpcompta/include/user_common.php
ViewVC logotype

Diff of /phpcompta/include/user_common.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.45 by sparkyx, Wed Sep 28 10:36:00 2005 UTC revision 1.46 by sparkyx, Sat Oct 22 10:59:48 2005 UTC
# Line 374  function ListJrn($p_cn,$p_jrn,$p_where=" Line 374  function ListJrn($p_cn,$p_jrn,$p_where="
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'");

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26