From 4d659aae9689140782085498f1127e5c2743f98b Mon Sep 17 00:00:00 2001 From: Dany wm Date: Sun, 23 Jun 2024 10:54:38 +0200 Subject: [PATCH] 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;