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

Diff of /phpcompta/include/form_input.php

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

revision 1.59 by sparkyx, Wed Sep 21 13:30:49 2005 UTC revision 1.60 by sparkyx, Tue Sep 27 16:43:05 2005 UTC
# Line 1102  function RecordAchat($p_cn,$p_array,$p_u Line 1102  function RecordAchat($p_cn,$p_array,$p_u
1102      // First we add in jrnx      // First we add in jrnx
1103                    
1104    // Compute the j_grpt    // Compute the j_grpt
1105    // NOTE STAN: pourquoi "+1" à la ligne suivante? Je pense que le GetNextId retourne déja un truc incrémenté, non?      $seq=NextSequence($p_cn,'j_grpt');
   // en effet non, car je vois dans la table "jrnx" que le j_grpt n'est incrémenté que de un.  
   $seq=GetNextId($p_cn,'j_grpt')+1;  
1106        
1107        
1108    // Debit = client    // Debit = client
# Line 1417  function RecordFin($p_cn,$p_array,$p_use Line 1415  function RecordFin($p_cn,$p_array,$p_use
1415      //    $type=( ${"e_other$i"."_amount"} < 0 )?'d':'c';      //    $type=( ${"e_other$i"."_amount"} < 0 )?'d':'c';
1416    
1417      // Compute the j_grpt      // Compute the j_grpt
1418      $seq=GetNextId($p_cn,'j_grpt')+1;      $seq=NextSequence($p_cn,'j_grpt');
1419    
1420      if ( InsertJrnx($p_cn,'d',$p_user,$p_jrn,$poste_bq,$e_date,${"e_other$i"."_amount"},$seq,$periode) == false ) {      if ( InsertJrnx($p_cn,'d',$p_user,$p_jrn,$poste_bq,$e_date,${"e_other$i"."_amount"},$seq,$periode) == false ) {
1421        $Rollback($p_cn);exit("error __FILE__ __LINE__");        $Rollback($p_cn);exit("error __FILE__ __LINE__");
# Line 1667  function RecordODS($p_cn,$p_array,$p_use Line 1665  function RecordODS($p_cn,$p_array,$p_use
1665    $sum_cred=0.0;    $sum_cred=0.0;
1666    
1667          // Compute the j_grpt          // Compute the j_grpt
1668    $seq=GetNextId($p_cn,'j_grpt')+1;    $seq=NextSequence($p_cn,'j_grpt');
1669    
1670    StartSql($p_cn);    StartSql($p_cn);
1671    // store into the database    // store into the database

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60

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