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 |
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__"); |
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 |