29if (!defined(
'ALLOWED'))
30 die(
'Appel direct ne sont pas permis');
32include_once NOALYSS_INCLUDE.
"/lib/ac_common.php";
50 $get_jrn=
$http->get(
'jrn_id',
"number");
58 echo $exc->getMessage();
59 error_log($exc->getTraceAsString());
70if ($get_jrn!=0&&
$g_user->check_jrn($get_jrn)==
'X')
128 die(__FILE__.
":".__LINE__.
'Journal invalide');
131 if ($ret_detail==
null)
134 $a_heading[]=_(
"Date paiement");
135 $a_heading[]=_(
"Montant paiement");
136 $a_heading[]=_(
"Methode paiement");
137 $a_heading[]=_(
"Libellé");
138 $a_heading[]=_(
"Opération paiement");
142 $prepared_query->prepare_reconcile_date();
146 foreach ($a_heading as $key=>
$value)
160 foreach (
$row as $col)
162 if ($idx_col> 18 )
$type=
"number";
197 $acc_ledger_history->export_csv();
212 $prepared_query->prepare_reconcile_date();
220 $title[]=_(
"commentaire");
223 $title[]=_(
"montant devise");
228 foreach ($Row as
$line)
230 $tiers_id=
$Jrn->get_tiers_id(
$line[
'jrn_def_type'],
$line[
'jr_id']);
231 $fiche_tiers=
new Fiche(
$cn, $tiers_id);
238 $export->add($fiche_tiers->get_quick_code());
246 if (
$line[
'jrn_def_type']==
'FIN')
248 $positive=
$cn->get_value(
"select qf_amount from quant_fin ".
249 " where jr_id=$1", array(
$line[
'jr_id']));
251 $export->add($positive,
"number");
254 $export->add(bcdiv(
$line[
'sum_ocamount'],2,4),
"number");
268 array(
$line[
'jr_id']));
309 $acc_ledger_history->export_csv();
321 $acc_ledger_history->export_csv();
328 $acc_ledger_history->export_csv();
NoAccess($js=1)
Echo no access and stop.
manage the list of operation when we need several ledger with a different type or from Misceleaneous ...
Display the operations for Purchase.
Acc_Ledger_History : Manage the list (history) of operations for display.
Handle the ledger of purchase,.
static heading_detail_purchase()
compute an array with the heading cells for the details, used for the export in CSV
Handle the ledger of sold,.
static heading_detail_sale()
compute an array with the heading cells for the details, used for the export in CSV
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static num_row($ret)
wrapper for the function pg_num_rows
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
Manage the CSV : manage files and write CSV record.
contains prepared query used in different classes of the application
static available_ledger($get_from_periode)
find all the active ledger for the exerice of the periode and readable by the current user @global ty...
const ATTR_DEF_FIRST_NAME
for($e=0; $e< count($afiche); $e++) exit
if( $delta< 0) elseif( $delta==0)