[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 10/33: For Misc Operation in currency , show
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 10/33: For Misc Operation in currency , show the currency amount / row |
Date: |
Thu, 11 Nov 2021 06:02:44 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit b85ea649c35dd141487b9bf5be2ef835a0349598
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Oct 1 17:49:00 2021 +0200
For Misc Operation in currency , show the currency amount / row
---
include/template/ledger_detail_misc.php | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/include/template/ledger_detail_misc.php
b/include/template/ledger_detail_misc.php
index 1e01789..d5b723a 100644
--- a/include/template/ledger_detail_misc.php
+++ b/include/template/ledger_detail_misc.php
@@ -94,8 +94,12 @@ require_once NOALYSS_TEMPLATE.'/ledger_detail_top.php';
echo th(_('Poste Comptable'));
echo th(_('Quick Code'));
echo th(_('Libellé'));
-echo th(_('Débit'), 'style="text-align:right"');
-echo th(_('Crédit'), 'style="text-align:right"');
+ echo th(_('Débit'), 'style="text-align:right"');
+ echo th(_('Crédit'), 'style="text-align:right"');
+ if ( $obj->det->currency_id != 0 ) {
+ echo th(_("Devise"),' class="num" ');
+ }
+
if ($owner->MY_ANALYTIC != 'nu' /* && $div == 'popup' */ ){
$anc=new Anc_Plan($cn);
$a_anc=$anc->get_list(' order by pa_id ');
@@ -185,7 +189,11 @@ $amount_idx=0; $sum_prod_currency=0;
}
}
$class=($e%2==0)?' class="even"':'class="odd"';
-
+ if ( $obj->det->currency_id != 0 ) {
+ $cur_amount=$cn->get_value("select oc_amount from operation_currency
where j_id=$1",
+ [$q[$e]['j_id']]);
+ $row.=td(nbm($cur_amount,4),' class="num" ');
+ }
echo tr($row,$class);
}
- [Noalyss-commit] [noalyss] branch master updated (8b28b18 -> 2b1bcd5), Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 04/33: Sale & Purchase Quantity with 2 dec., Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 01/33: Cosmetic : move dialog horizontally and vertically, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 02/33: Cosmetic : add button close for filter, dialog box search operation, TVA, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 09/33: Rounded for currency, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 08/33: Operation details : calcul correctement la différence avec les opérations extournées, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 12/33: Button close for new card, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 06/33: Bug rounded : show amount in currency with 4 dec., Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 10/33: For Misc Operation in currency , show the currency amount / row,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 11/33: Bug for reversed operation when currency are used, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 03/33: Improve HttpInput::extract , the array is set and not passed anymore, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 05/33: Bug : pour non-assujetti , pas de calcul en devise, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 07/33: Bug for reversed operation when currency are used, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 14/33: Typo, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 13/33: Compute.php it happens that the argument are not numeric, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 16/33: Documentation, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 15/33: Bug #2079 : 0002079: Recherche de carte : guillement ne passe pas, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 21/33: Cosmetic #2082 : OD parfois ajout différence de change, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 18/33: Bug : currency_id was nullable script compatible PSQL 10, Dany De Bontridder, 2021/11/11