Annulation - extourne
This commit is contained in:
parent
b308a5d130
commit
e258761e6d
3 changed files with 14 additions and 51 deletions
|
|
@ -1102,9 +1102,7 @@ function RecordAchat($p_cn,$p_array,$p_user,$p_jrn)
|
|||
// First we add in jrnx
|
||||
|
||||
// Compute the j_grpt
|
||||
// NOTE STAN: pourquoi "+1" à la ligne suivante? Je pense que le GetNextId retourne déja un truc incrémenté, non?
|
||||
// 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;
|
||||
$seq=NextSequence($p_cn,'j_grpt');
|
||||
|
||||
|
||||
// Debit = client
|
||||
|
|
@ -1417,7 +1415,7 @@ function RecordFin($p_cn,$p_array,$p_user,$p_jrn) {
|
|||
// $type=( ${"e_other$i"."_amount"} < 0 )?'d':'c';
|
||||
|
||||
// Compute the j_grpt
|
||||
$seq=GetNextId($p_cn,'j_grpt')+1;
|
||||
$seq=NextSequence($p_cn,'j_grpt');
|
||||
|
||||
if ( InsertJrnx($p_cn,'d',$p_user,$p_jrn,$poste_bq,$e_date,${"e_other$i"."_amount"},$seq,$periode) == false ) {
|
||||
$Rollback($p_cn);exit("error __FILE__ __LINE__");
|
||||
|
|
@ -1667,7 +1665,7 @@ function RecordODS($p_cn,$p_array,$p_user,$p_jrn)
|
|||
$sum_cred=0.0;
|
||||
|
||||
// Compute the j_grpt
|
||||
$seq=GetNextId($p_cn,'j_grpt')+1;
|
||||
$seq=NextSequence($p_cn,'j_grpt');
|
||||
|
||||
StartSql($p_cn);
|
||||
// store into the database
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue