noalyss-commit
[Top][All Lists]
Advanced

[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;">&ni;</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;">&ni;</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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]