40if (!defined(
'ALLOWED'))
41 die(
'Appel direct ne sont pas permis');
43foreach (array(
'j',
'ctl') as
$a)
57 return '{"saldo":"0"}';
59 $id=
$cn->get_value(
'select jrn_def_bank from jrn_def where jrn_def_id=$1', array(
$ledger_id));
62 echo
'{"saldo":"ERR"}';
75 $filter_year=
" j_tech_per in (select p_id from parm_periode ".
76 "where p_exercice='".$g_user->get_exercice().
"')";
82 $res=$acc->get_bk_balance(
$filter_year.
" and ( trim(jr_pj_number) != '' and jr_pj_number is not null)");
86 return '{"saldo":"0"}';
91 echo
'{"saldo":"'.$solde.
'"}';
94 $solde=$acc->get_bk_balance_currency();
95 echo
'{"saldo":"'.$solde.
'"}';
102 echo
'{"saldo":"ERR"}';
record_log($p_message)
Record an error message into the log file of the server or in the log folder of NOALYSS Record also t...
global $g_user
if no group available , then stop
if(isNumber($jr_id)==0) $ledger_id
the class Acc_Ledger_Fin inherits from Acc_Ledger, this object permit to manage the financial ledger
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...