From cdbb9403648a264b3c6162d94c5382b3c88654e0 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 17 Nov 2022 13:05:11 +0100 Subject: [PATCH] Show tag in operations list --- include/class/acc_ledger_search.class.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/include/class/acc_ledger_search.class.php b/include/class/acc_ledger_search.class.php index cab4fcafb..8f678346d 100644 --- a/include/class/acc_ledger_search.class.php +++ b/include/class/acc_ledger_search.class.php @@ -337,6 +337,13 @@ class Acc_Ledger_Search p_closed, jr_pj_number, n_text, + (select string_agg(a,' ') + from (select ''||t_tag||'' a + from operation_tag ot join tags t on(ot.tag_id=t.t_id) + where ot.jrn_id=X.jr_id + ) as tag_ml) + as tag_operation + , case when jrn_def_type='VEN' then (select ad_value from fiche_detail where ad_id=1 @@ -867,10 +874,7 @@ class Acc_Ledger_Search $tr=''; } $r.=$tr; - //internal code - // button modify - - + // date $r.=""; $r.=$row['str_jr_date']; @@ -910,7 +914,7 @@ class Acc_Ledger_Search // comment $r.=""; - $tmp_jr_comment=h($row['jr_comment']); + $tmp_jr_comment=h($row['jr_comment']).$row['tag_operation']; $r.=$tmp_jr_comment; if ( $row['analytic_op'] != "") $r.=sprintf(''); @@ -1158,7 +1162,7 @@ class Acc_Ledger_Search $r.=td($other); // comment $r.=""; - $tmp_jr_comment=h($row['jr_comment']); + $tmp_jr_comment=h($row['jr_comment']).$row['tag_operation']; $r.=$tmp_jr_comment; $r.=""; $r.=td(h($row['n_text']), ' style="font-size:0.87em"');