[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 16/29: Improve : PRINTJRN search in one line
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 16/29: Improve : PRINTJRN search in one line mode |
Date: |
Sat, 6 Jan 2024 05:59:15 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit 9bc39834df3c2b0191f92f59dbf96c7af7d5c631
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Dec 17 17:13:02 2023 +0100
Improve : PRINTJRN search in one line mode
---
include/class/acc_ledger_history_generic.class.php | 4 +++-
.../template/acc_ledger_history_financial_oneline.php | 4 +++-
.../template/acc_ledger_history_purchase_oneline.php | 19 +++++++++++--------
include/template/acc_ledger_history_sale_oneline.php | 17 +++++++++++------
4 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/include/class/acc_ledger_history_generic.class.php
b/include/class/acc_ledger_history_generic.class.php
index b99bde395..6bbabe3b1 100644
--- a/include/class/acc_ledger_history_generic.class.php
+++ b/include/class/acc_ledger_history_generic.class.php
@@ -700,7 +700,9 @@ class Acc_Ledger_History_Generic extends Acc_Ledger_History
public function export_oneline_html()
{
$this->get_rowSimple();
- echo '<TABLE class="result">';
+
+ echo \HtmlInput::filter_table("tb_print_ledger", "0,1,2,3,4,5,6", 1);
+ echo '<TABLE class="result" id="tb_print_ledger">';
echo "<TR>".
th(_("Date")).
th(_("n° pièce")).
diff --git a/include/template/acc_ledger_history_financial_oneline.php
b/include/template/acc_ledger_history_financial_oneline.php
index 42f820ab7..9cc21f80c 100644
--- a/include/template/acc_ledger_history_financial_oneline.php
+++ b/include/template/acc_ledger_history_financial_oneline.php
@@ -25,8 +25,10 @@ if (!defined('ALLOWED'))
* @file
* @brief display Financial operation , simple and detailled
*/
+
+echo \HtmlInput::filter_table("tb_print_ledger", "0,1,2,3,4,5,6,7,8,9", 1);
?>
-<table class="result">
+<table class="result" id="tb_print_ledger">
<tr>
<th><?= _('Date') ?></th>
<th><?= _('Banque') ?></th>
diff --git a/include/template/acc_ledger_history_purchase_oneline.php
b/include/template/acc_ledger_history_purchase_oneline.php
index 9c57fa649..34fbb83b7 100644
--- a/include/template/acc_ledger_history_purchase_oneline.php
+++ b/include/template/acc_ledger_history_purchase_oneline.php
@@ -28,8 +28,11 @@ if (!defined('ALLOWED'))
* @todo prévoir aussi pour les non assujetti : faire disparaître les montants
TVA
*/
bcscale(2);
+$p_col=($nb_other_tax<>0)?"0,1,2,3,4,5,6,7,8,9,10,11":"0,1,2,3,4,5,6,7,8,9,10,11,12";
+echo \HtmlInput::filter_table("tb_print_ledger", $p_col, 1);
+
?>
-<table class="result">
+<table class="result" id="tb_print_ledger">
<tr>
<th>
<?=_('Date')?>
@@ -49,28 +52,28 @@ bcscale(2);
<th>
<?=_('Description')?>
</th>
- <th class="num">
+ <th class="text-center">
<?=_('HTVA')?>
</th>
- <th class="num">
+ <th class="text-center">
<?=_('Non ded')?>
</th>
- <th class="num">
+ <th class="text-center">
<?=_('TVA')?>
</th>
<?php if ($nb_other_tax<>0) :?>
- <th class="num">
+ <th class="text-center">
<?=_('Autre Taxe')?>
</th>
<?php endif;?>
- <th class="num">
+ <th class="text-center">
<?=_('TVAC')?>
</th>
- <th class="num">
+ <th class="text-center">
<?=_('Devise')?>
</th>
- <th>
+ <th class="text-center">
<?=_('Lien')?>
</th>
</tr>
diff --git a/include/template/acc_ledger_history_sale_oneline.php
b/include/template/acc_ledger_history_sale_oneline.php
index 4c7041ccc..b1fb3af96 100644
--- a/include/template/acc_ledger_history_sale_oneline.php
+++ b/include/template/acc_ledger_history_sale_oneline.php
@@ -24,9 +24,11 @@
* @brief
* @todo prévoir aussi pour les non assujetti : faire disparaître les montants
TVA
*/
+$p_col=($nb_other_tax<>0)?"0,1,2,3,4,5,6,7,8,9,10":"0,1,2,3,4,5,6,7,8,9,10,11";
+echo \HtmlInput::filter_table("tb_print_ledger", $p_col, 1);
?>
-<table class="result">
+<table class="result" id="tb_print_ledger">
<tr>
<th>
<?=_('Date')?>
@@ -46,24 +48,27 @@
<th>
<?=_('Description')?>
</th>
- <th class="num">
+ <th class="text-center">
<?=_('HTVA')?>
</th>
- <th class="num">
+ <th class="text-center">
<?=_('TVA')?>
</th>
<?php if ($nb_other_tax>0) :?>
- <th class="num">
+ <th class="text-center">
<?=_('Autre Taxe')?>
</th>
<?php endif;?>
- <th class="num">
+ <th class="text-center">
<?=_('TVAC')?>
</th>
- <th class="num">
+ <th class="text-center">
<?=_('Devise')?>
</th>
+ <th class="text-center">
+ <?=_('Lien')?>
+ </th>
</tr>
<?php
$nb_data=count($this->data);
- [Noalyss-commit] [noalyss] 21/29: PhpUnit : test, (continued)
- [Noalyss-commit] [noalyss] 21/29: PhpUnit : test, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 20/29: Bug fix : sent emails not counted properly, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 23/29: Task #1749: Cases «Débit» dans les OD's fait remarquer si débit ou crédit, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 04/29: cosmetic info password, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 12/29: Fix bug : $g_parameter non initialisé pour plugin, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 22/29: Task #0002318: Envoi email : forcer le domaine de l'expéditeur Adapter le fichier config, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 24/29: Task #1749: Cases «Débit» dans les OD's fait remarquer si débit ou crédit, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 15/29: TFPDF mise à jour 1.33, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 27/29: fixup! fixup! Task #1749: Cases «Débit» dans les OD's fait remarquer si débit ou crédit, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 29/29: Cosmetic Totaux OD, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 16/29: Improve : PRINTJRN search in one line mode,
dwm <=
- [Noalyss-commit] [noalyss] 19/29: 0002317: Paiement : forcer la fiche pour les banques, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 25/29: fixup! Task #1749: Cases «Débit» dans les OD's fait remarquer si débit ou crédit, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 26/29: fixup! fixup! Task #1749: Cases «Débit» dans les OD's fait remarquer si débit ou crédit, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 28/29: Task #0002219 PHP 8.1 Compatibility, dwm, 2024/01/06