68 |
if ($Res==false) { rollback($p_cn); EndSql($p_cn); return ERROR;} |
if ($Res==false) { rollback($p_cn); EndSql($p_cn); return ERROR;} |
69 |
// Set correctly the number of operation id (jr_opid) for each journal |
// Set correctly the number of operation id (jr_opid) for each journal |
70 |
// get the existing jrn_def_id |
// get the existing jrn_def_id |
71 |
|
//-- |
72 |
$Res = ExecSql($p_cn,"select jrn_def_id from jrn_def"); |
$Res = ExecSql($p_cn,"select jrn_def_id from jrn_def"); |
73 |
$MaxJrn=pg_NumRows($Res); |
$MaxJrn=pg_NumRows($Res); |
74 |
// for each jrn_def_id |
// for each jrn_def_id |