38if (!defined(
'ALLOWED'))
39 die(
'Appel direct ne sont pas permis');
41foreach (array(
'j',
'ctl') as
$a)
55 return '{"saldo":"0"}';
57 $id=
$cn->get_value(
'select jrn_def_bank from jrn_def where jrn_def_id=$1', array(
$ledger_id));
60 echo
'{"saldo":"ERR"}';
73 $filter_year=
" j_tech_per in (select p_id from parm_periode ".
74 "where p_exercice='".$g_user->get_exercice().
"')";
80 $res=$acc->get_bk_balance(
$filter_year.
" and ( trim(jr_pj_number) != '' and jr_pj_number is not null)");
84 return '{"saldo":"0"}';
89 echo
'{"saldo":"'.$solde.
'"}';
92 $solde=$acc->get_bk_balance_currency();
93 echo
'{"saldo":"'.$solde.
'"}';
100 echo
'{"saldo":"ERR"}';
record_log($p_message)
Record an error message into the log file of the server.
global $g_user
if no group available , then stop
foreach(array('j', 'ctl') as $a) $http
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...