[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 08/15: New #0001887: ANCGL ajout champs numér
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 08/15: New #0001887: ANCGL ajout champs numéro action |
Date: |
Mon, 25 Jan 2021 18:56:21 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 59111506776f7197254531b6c4925efd57b1edf4
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Jan 23 11:42:27 2021 +0100
New #0001887: ANCGL ajout champs numéro action
---
include/class/anc_grandlivre.class.php | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/include/class/anc_grandlivre.class.php
b/include/class/anc_grandlivre.class.php
index d6a0fe7..6f3c64f 100644
--- a/include/class/anc_grandlivre.class.php
+++ b/include/class/anc_grandlivre.class.php
@@ -114,7 +114,7 @@ class Anc_GrandLivre extends Anc_Print
$pa_id_cond="";
if ( isset ( $this->pa_id) && $this->pa_id !='')
$pa_id_cond= "pa_id=".$this->pa_id." and";
- $array=$this->db->get_array(" select
+ $array=$this->db->get_array(" select
po_name,
to_char(oa_date,'DD.MM.YYYY') as oa_date,
to_char(jr_date_paid,'DD.MM.YY') as strdate_paid,
@@ -137,7 +137,8 @@ class Anc_GrandLivre extends Anc_Print
coalesce(oa_group,0) as oa_group,
case when oa_debit='t' then oa_amount else 0 end as amount_deb,
case when oa_debit='f' then oa_amount else 0 end as amount_cred,
- case when oa_debit='f' then 'C' else 'D' end as deb_cred
+ case when oa_debit='f' then 'C' else 'D' end as deb_cred,
+ ac.str_action
from operation_analytique as B join poste_analytique using(po_id)
left join jrnx using (j_id)
left join jrn on (j_grpt=jr_grpt_id)
@@ -146,7 +147,12 @@ class Anc_GrandLivre extends Anc_Print
select distinct qs_client,j_id from quant_sold
qs
union
select distinct qf_bank,j_id from
quant_fin qf ) as ftiers using (j_id)
- where $pa_id_cond oa_amount <> 0.0 $cond_poste $filter_date
+ left join (select j.jr_id,string_agg( ag_id::text,'-') as str_action
+ from jrn j left
+ join action_gestion_operation ago on (j.jr_id=ago.jr_id )
+ group by j.jr_id) as ac on (ac.jr_id=jrn.jr_id)
+ where
+ $pa_id_cond oa_amount <> 0.0 $cond_poste $filter_date
order by po_name,oa_date::date,qcode,j_poste");
@@ -351,6 +357,7 @@ class Anc_GrandLivre extends Anc_Print
$aheader[]=array("title"=>'Debit','type'=>'num');
$aheader[]=array("title"=>'Credit','type'=>'num');
$aheader[]=array("title"=>'D/C','type'=>'string');
+ $aheader[]=array("title"=>'Action','type'=>'string');
Impress::array_to_csv($array, $aheader,"export-anc-grandlivre");
}
}
- [Noalyss-commit] [noalyss] branch master updated (a7b8d81 -> ce0a8f8), Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 01/15: Tache 0001885: postes utilisables dans Opération ODS, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 08/15: New #0001887: ANCGL ajout champs numéro action,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 05/15: NEW #0001886: ANC/ANCIMP/ANCGL >> Export PDF, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 04/15: DEBUG : show file name, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 10/15: Improve : Select_Box , placement, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 02/15: Security : constructor can take info from request, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 03/15: Fix : PHP compatibility with count Fix : Dossier::set_current Code cleaning ,, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 07/15: NEW #0001886: ANC/ANCIMP/ANCGL >> Export PDF Place properly the select_box, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 06/15: Bug : javascript message were unavailable, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 09/15: Cosmetic & code cleaning, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 11/15: Improve : ANCGL , type of export mandatory, Dany De Bontridder, 2021/01/25
- [Noalyss-commit] [noalyss] 12/15: Improve : add a function for detection SQL inject, Dany De Bontridder, 2021/01/25