noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 10/33: PRINTTVA : display tva_code


From: dwm
Subject: [Noalyss-commit] [noalyss] 10/33: PRINTTVA : display tva_code
Date: Thu, 18 Jul 2024 12:24:44 -0400 (EDT)

sparkyx pushed a commit to branch unstable
in repository noalyss.

commit 4d659aae9689140782085498f1127e5c2743f98b
Author: Dany wm <danydb@noalyss.eu>
AuthorDate: Sun Jun 23 10:54:38 2024 +0200

    PRINTTVA : display tva_code
---
 include/class/tax_summary.class.php | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/class/tax_summary.class.php 
b/include/class/tax_summary.class.php
index 6c244a260..ffb5e5037 100644
--- a/include/class/tax_summary.class.php
+++ b/include/class/tax_summary.class.php
@@ -322,7 +322,7 @@ class Tax_Summary
         $sql=$this->build_sql_sale(TRUE);
         $sql.=" 
                     select jrn_def_name,
-                        tva_label ,
+                        tva_code ||' ('||tva_rate.tva_label||')' tva_label,
                         qs_vat_code,
                         tva_rate,
                         tva_both_side,
@@ -334,7 +334,7 @@ class Tax_Summary
                         detail_tva 
                         join tva_rate on (tva_rate.tva_id=qs_vat_code)
                         join jrn_def on (jrn_def.jrn_def_id=j_jrn_def)
-                    order by jrn_def_name,tva_label";
+                    order by jrn_def_name, tva_code ||' 
('||tva_rate.tva_label||')'";
                 
         $array=$this->db->get_array($sql, [$this->date_start, 
$this->date_end]);
         return $array;
@@ -348,7 +348,7 @@ class Tax_Summary
     {
       $sql=$this->build_sql_purchase(TRUE)."
                 select jrn_def_name,
-                    tva_label ,
+                     tva_code ||' ('||tva_rate.tva_label||')' tva_label,
                     tva_rate,
                     tva_both_side,
                     qp_vat_code,
@@ -363,7 +363,7 @@ class Tax_Summary
                     detail_tva 
                     join tva_rate on (tva_rate.tva_id=qp_vat_code)
                     join jrn_def on (jrn_def.jrn_def_id=j_jrn_def)
-                order by jrn_def_name,tva_label";
+                order by jrn_def_name, tva_code ||' 
('||tva_rate.tva_label||')'";
         $array=$this->db->get_array($sql, [$this->date_start, 
$this->date_end]);
         return $array;
     }
@@ -375,7 +375,7 @@ class Tax_Summary
     {
         $sql=$this->build_sql_sale(FALSE);
         $sql.="select 
-                    tva_label ,
+                     tva_code ||' ('||tva_rate.tva_label||')' tva_label,
                     qs_vat_code,
                     tva_rate,
                     tva_both_side,
@@ -386,7 +386,7 @@ class Tax_Summary
                 from
                     detail_tva 
                     join tva_rate on (tva_rate.tva_id=qs_vat_code)
-                    order by tva_label";
+                    order by  tva_code ||' ('||tva_rate.tva_label||')'";
         $array=$this->db->get_array($sql, [$this->date_start, 
$this->date_end]);
         return $array;
     }
@@ -399,7 +399,7 @@ class Tax_Summary
         
         $sql=$this->build_sql_purchase(FALSE)."
                 select 
-                    tva_label ,
+                     tva_code ||' ('||tva_rate.tva_label||')' tva_label,
                     tva_rate,
                     tva_both_side,
                     qp_vat_code,
@@ -413,7 +413,7 @@ class Tax_Summary
                 from
                     detail_tva 
                     join tva_rate on (tva_rate.tva_id=qp_vat_code)
-                order by tva_label";
+                order by  tva_code ||' ('||tva_rate.tva_label||')'";
         $array=$this->db->get_array($sql, [$this->date_start, 
$this->date_end]);
 
         return $array;



reply via email to

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