/[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.44 by sparkyx, Fri Jun 17 10:41:55 2005 UTC revision 1.45 by stanpinte, Fri Jun 24 16:17:17 2005 UTC
# Line 1114  function RecordAchat($p_cn,$p_array,$p_u Line 1114  function RecordAchat($p_cn,$p_array,$p_u
1114      // First we add in jrnx      // First we add in jrnx
1115                    
1116    // Compute the j_grpt    // Compute the j_grpt
1117      // NOTE STAN: pourquoi "+1" à la ligne suivante? Je pense que le GetNextId retourne déja un truc incrémenté, non?  
1118      // en effet non, car je vois dans la table "jrnx" que le j_grpt n'est incrémenté que de un.
1119    $seq=GetNextId($p_cn,'j_grpt')+1;    $seq=GetNextId($p_cn,'j_grpt')+1;
1120        
1121        
# Line 1122  function RecordAchat($p_cn,$p_array,$p_u Line 1124  function RecordAchat($p_cn,$p_array,$p_u
1124    StartSql($p_cn);    StartSql($p_cn);
1125    InsertJrnx($p_cn,'c',$p_user,$p_jrn,$poste,$e_date,$amount+$sum_vat,$seq,$periode);    InsertJrnx($p_cn,'c',$p_user,$p_jrn,$poste,$e_date,$amount+$sum_vat,$seq,$periode);
1126        
1127    // Credit = goods    // Credit = goods
1128    for ( $i = 0; $i < $nb_item;$i++) {    for ( $i = 0; $i < $nb_item;$i++) {
1129      if ( ! isset ( $a_good[$i]) ) continue;      if ( ! isset ( $a_good[$i]) ) continue;
1130      $poste=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_ACCOUNT);      $poste=GetFicheAttribut($p_cn,$a_good[$i],ATTR_DEF_ACCOUNT);

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

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