[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 04/30: Show tag in operations list
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 04/30: Show tag in operations list |
Date: |
Sat, 3 Dec 2022 08:35:06 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit cdbb9403648a264b3c6162d94c5382b3c88654e0
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Nov 17 13:05:11 2022 +0100
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 '<span style=\"font-size:80%\" class=\"tagcell
tagcell-color'||t.t_color::text||'\">'||t_tag||'</span>' 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='<TR class="even">';
}
$r.=$tr;
- //internal code
- // button modify
-
-
+
// date
$r.="<TD>";
$r.=$row['str_jr_date'];
@@ -910,7 +914,7 @@ class Acc_Ledger_Search
// comment
$r.="<TD>";
- $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('<span
style="float:right;background:black;color:white;">∋</span>');
@@ -1158,7 +1162,7 @@ class Acc_Ledger_Search
$r.=td($other);
// comment
$r.="<TD>";
- $tmp_jr_comment=h($row['jr_comment']);
+ $tmp_jr_comment=h($row['jr_comment']).$row['tag_operation'];
$r.=$tmp_jr_comment;
$r.="</TD>";
$r.=td(h($row['n_text']), ' style="font-size:0.87em"');
- [Noalyss-commit] [noalyss] 25/30: Bug : missing class, (continued)
- [Noalyss-commit] [noalyss] 25/30: Bug : missing class, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 18/30: Follow Up : can use enrich text for Comment and description, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 17/30: Merge branch 'dev9035-14', Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 19/30: Cosmetic, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 27/30: Cosmetic : move tags in operation details, small cosmetic bug, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 03/30: Improve Debug info presentation, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 09/30: New #0002216: Transformation d'une dépense Gestion en facture achat ou note de frais, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 29/30: Cosmetic : color, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 28/30: cosmetic, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 30/30: Cosmetic, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 04/30: Show tag in operations list,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 08/30: To let TOOLS plugin to add tag to operation, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 01/30: Bug : no filter on card for ledger PURCHASE, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 05/30: Cosmetic : display cards on one row in account search, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 11/30: Improve Test and set the Patch level to 181, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 13/30: Better error message when cannot save a plugin, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 12/30: Fix : bug cannot save an empty FIN Ledger, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 14/30: Bug Fiche_Def->insertAttribut when needed to compute an attribute order, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 26/30: WHen creating from follow-up , keep a link to the event in the operation, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 24/30: Cosmetic, Dany De Bontridder, 2022/12/03
- [Noalyss-commit] [noalyss] 23/30: Comptability : Falkon doesn't understand the javascript token "??", Dany De Bontridder, 2022/12/03