[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;
- [Noalyss-commit] [noalyss] branch unstable updated (2fa3bc882 -> 26a3f802d), dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 02/33: Documentation code, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 10/33: PRINTTVA : display tva_code,
dwm <=
- [Noalyss-commit] [noalyss] 08/33: Merge branch '2362-ccardat' into stable, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 04/33: Documentation code, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 09/33: Merge branch 'unstable' into pre-stable, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 06/33: PDF : operation detail for a card : add first name, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 22/33: REPORT Put the amount in red if negative, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 31/33: Database upgrade, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 18/33: Fix Bug : tva_code not retrieve from search, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 17/33: PHPUNIT Acc_TVA : tva_code must contains at least one letter Acc_Ledger : input_new PDF_Anc_Acc_ListTest:testPdf_Card Fix bug sizIe, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 28/33: VEN - ACH fix default currency, dwm, 2024/07/18
- [Noalyss-commit] [noalyss] 32/33: test unit : pdf activity, dwm, 2024/07/18