[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 10/17: TVA show up , sorted by ID
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 10/17: TVA show up , sorted by ID |
Date: |
Wed, 25 Sep 2024 06:44:35 -0400 (EDT) |
sparkyx pushed a commit to branch stable
in repository noalyss.
commit 92dc2d7ff5a52e7378e76e4f2b9c5ac09f696caa
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Sep 22 14:36:30 2024 +0200
TVA show up , sorted by ID
---
html/ajax_misc.php | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/html/ajax_misc.php b/html/ajax_misc.php
index 94ebfefd3..7f40a9c42 100644
--- a/html/ajax_misc.php
+++ b/html/ajax_misc.php
@@ -554,9 +554,11 @@ EOF;
</data>
EOF;
break;
-
- case 'dsp_tva':
+/**************************************************************************
+ * show dialog box to let the choice of a VAT to use
+ *************************************************************************/
+ case 'dsp_tva':
$cn = Dossier::connect();
// Filter the VAT
$filter=$http->get("filter","string","none");
@@ -565,7 +567,7 @@ EOF;
from v_tva_rate
where
tva_sale <> '#'
- order by tva_rate desc");
+ order by tva_id asc");
} elseif ($filter == "purchase") {
@@ -574,13 +576,13 @@ EOF;
v_tva_rate
where
tva_purchase <> '#'
- order by tva_rate desc");
+ order by tva_id asc");
}else {
$Res = $cn->exec_sql("select * from v_tva_rate
where
tva_purchase <> '#' and tva_sale <> '#'
- order by tva_rate desc");
+ order by tva_id asc");
}
$Max = Database::num_row($Res);
$r = "";
@@ -588,9 +590,9 @@ EOF;
$r.='<div >';
$r.=_('Cherche')."
".HtmlInput::filter_table("tva_select_table",'0,1,2,3' , 1);
$r.= '<TABLE class="sortable" style="width:100%"
id="tva_select_table">';
- $r.=th(_('id'));
+ $r.=th(_('id'),'class="sorttable_sorted"');
$r.=th(_('code'));
- $r.=th(_('Taux'),'class="sorttable_sorted_reverse"');
+ $r.=th(_('Taux'));
$r.=th(_('Symbole'));
$r.=th(_('Explication'));
- [Noalyss-commit] [noalyss] branch stable updated (c0b99b024 -> 4a4928d0d), dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 13/17: MOD1: setting base TVA, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 16/17: nav-level2.active and nav-level3 active: border color, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 15/17: Cosmetic : remove border, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 04/17: Bug : warning for ledger C0JRN when no category card is checked, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 08/17: Cosmetic menu, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 06/17: PHP Install check if curl present, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 17/17: REVERT 9bc780c62 SALE : by default invoice not checked, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 10/17: TVA show up , sorted by ID,
dwm <=
- [Noalyss-commit] [noalyss] 03/17: Cosmetic, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 02/17: Fix Bug Cannot create new category of cards, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 01/17: Fix : France saldo until end of exercice in Gestion, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 12/17: INSTALL: template must always use its own db structure, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 07/17: MOD2 : update, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 14/17: MOD2 : remove schema, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 11/17: VAT warning : update the VAT CODE, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 09/17: SALE : by default invoice not checked, dwm, 2024/09/25
- [Noalyss-commit] [noalyss] 05/17: Update MOD1, Belgian template add VAT, document, ..., dwm, 2024/09/25