[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 33/33: CANAL : add symbol for operation : his
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 33/33: CANAL : add symbol for operation : history card & accounting |
Date: |
Thu, 11 Nov 2021 06:02:53 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 2b1bcd58b20c50dce36d7efe6ebf9dbc76ce99e5
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Nov 8 13:17:06 2021 +0100
CANAL : add symbol for operation : history card & accounting
---
include/class/acc_account_ledger.class.php | 7 ++++---
include/class/fiche.class.php | 6 ++++--
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/include/class/acc_account_ledger.class.php
b/include/class/acc_account_ledger.class.php
index 25cbeef..2595232 100644
--- a/include/class/acc_account_ledger.class.php
+++ b/include/class/acc_account_ledger.class.php
@@ -188,7 +188,8 @@ class Acc_Account_Ledger
,(select cr_code_iso from currency where id=jrn.currency_id) as
cr_code_iso
,j_montant
,oc_amount
- ,oc_vat_amount
+ ,oc_vat_amount ,
+ case when exists(select 1 from operation_analytique oa where
j1.j_id=oa.j_id) then 1 else 0 end as op_analytic
from jrnx as j1
left join operation_currency as va on (j1.j_id = va.j_id )
join jrn_def on (jrn_def_id=j_jrn_def )
@@ -455,14 +456,14 @@ class Acc_Account_Ledger
$sum_deb=bcadd($sum_deb,$op['deb_montant']);
$class=($idx%2 == 0)?'class="odd"':$class=' class="even"';
$idx++;
-
+ $op_analytic=($op['op_analytic']==1)?'<span
style="float:right;background:black;color:white;">∋</span>':'';
echo "<TR $class name=\"tr_" . $let . "_" . $from_div . "\">" .
"<TD>".smaller_date(format_date($op['j_date']))."</TD>".
td(h($op['jr_pj_number'])).
"<TD>".h($op['j_qcode'])."</TD>".
"<TD>".$vw_operation."</TD>".
"<TD>".$tiers."</TD>".
- "<TD>".h($op['description'])."</TD>".
+ "<TD>".h($op['description']).$op_analytic."</TD>".
td($op['jr_optype']);
/// If the currency is not the default one , then show
the amount
if ( $op['currency_id'] > 0 )
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index 847ea09..6a12dd0 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -758,7 +758,8 @@ class Fiche
(select cr_code_iso from currency where
id=jrn.currency_id) as cr_code_iso,
j_montant,
sum_oc_amount as oc_amount,
- sum_oc_vat_amount as oc_vat_amount
+ sum_oc_vat_amount as oc_vat_amount ,
+ case when exists(select 1 from operation_analytique oa where
j1.j_id=oa.j_id) then 1 else 0 end as op_analytic
from jrnx as j1 left join jrn_def on
jrn_def_id=j_jrn_def
left join (select j_id,
coalesce(oc_amount,0) as
sum_oc_amount ,
@@ -1020,13 +1021,14 @@ class Fiche
$idx++;
$tiers=$operation->find_tiers($op['jr_id'], $op['j_id'],
$op['j_qcode']);
+ $op_analytic=($op['op_analytic']==1)?'<span
style="float:right;background:black;color:white;">∋</span>':'';
echo "<TR $class name=\"tr_" . $let . "_" . $from_div . "\">" .
"<TD>".smaller_date(format_date($op['j_date_fmt']))."</TD>".
td(h($op['jr_pj_number'])).
td($op['j_poste']).
"<TD>".$vw_operation."</TD>".
td($tiers).
- "<TD>".h($op['description'])."</TD>".
+ "<TD>".h($op['description']).$op_analytic."</TD>".
td($op['jr_optype']);
/// If the currency is not the default one , then show the amount
- [Noalyss-commit] [noalyss] 23/33: Fix : date before 2000 throws an exception, (continued)
- [Noalyss-commit] [noalyss] 23/33: Fix : date before 2000 throws an exception, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 25/33: Improve ACC_LEDGER compute internal ledger code in base 36, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 27/33: Operation ANC : Bug with decimal, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 28/33: Bug #2085: Comptabilité analytique : erreur dans les balances croisées, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 29/33: Task #0002087: Improve COMPTA/MENUFIN/FREC, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 30/33: Task #0002088: Export PDF de ANCBCC, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 17/33: Cosmetic bug : if no rows found , throw a warning, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 19/33: Task #0002068: Pas de champ recherche dans la liste de fiches, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 24/33: Gestion->suivi, global administrators can access all the documents. Improve search, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 26/33: Cosmetic Add close button, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 33/33: CANAL : add symbol for operation : history card & accounting,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 31/33: Cosmetic : button close, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 32/33: Empty upgrade.sql, Dany De Bontridder, 2021/11/11