695 |
// First we add in jrnx |
// First we add in jrnx |
696 |
|
|
697 |
// Compute the j_grpt |
// Compute the j_grpt |
698 |
$seq=GetNextId($p_cn,'j_grpt')+1; |
$seq=NextSequence($p_cn,'s_grpt'); |
699 |
|
|
700 |
|
|
701 |
// Debit = client |
// Debit = client |
1102 |
// First we add in jrnx |
// First we add in jrnx |
1103 |
|
|
1104 |
// Compute the j_grpt |
// Compute the j_grpt |
1105 |
$seq=NextSequence($p_cn,'j_grpt'); |
$seq=NextSequence($p_cn,'s_grpt'); |
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=NextSequence($p_cn,'j_grpt'); |
$seq=NextSequence($p_cn,'s_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=NextSequence($p_cn,'j_grpt'); |
$seq=NextSequence($p_cn,'s_grpt'); |
1669 |
|
|
1670 |
StartSql($p_cn); |
StartSql($p_cn); |
1671 |
// store into the database |
// store into the database |