[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 143/162: Currency : detail operation Purchase
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 143/162: Currency : detail operation Purchase , the amount in currency were wrong in the summary |
Date: |
Sat, 11 Jul 2020 13:24:06 -0400 (EDT) |
sparkyx pushed a commit to annotated tag E-4
in repository noalyss.
commit 4e1d598870ae68b4650363e1b8b0098b6cc4f291
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Sun Jan 6 13:09:29 2019 +0100
Currency : detail operation Purchase , the amount in currency were wrong
in the summary
---
include/template/ledger_detail_ach.php | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/template/ledger_detail_ach.php
b/include/template/ledger_detail_ach.php
index 176c571..1cf72cf 100644
--- a/include/template/ledger_detail_ach.php
+++ b/include/template/ledger_detail_ach.php
@@ -164,6 +164,7 @@ $str_anc="";
}
echo '</tr>';
+ $sum_charge_euro=0;
for ($e = 0; $e < count($obj->det->array); $e++)
{
$row = '';
@@ -251,7 +252,8 @@ $str_anc="";
*/
if ( $obj->det->currency_id != 0 ) {
$value=$obj->db->get_value("select
oc_amount+oc_vat_amount from operation_currency where j_id=$1",[$q['j_id']]);
- $row.=td(nbm($value,4),' class="num"');
+ $row.=td(nbm($value,2),' class="num"');
+ $sum_charge_euro=bcadd($sum_charge_euro,$value,2);
}
echo tr($row,$class);
@@ -268,7 +270,7 @@ $str_anc="";
if ( $obj->det->currency_id != "" && $obj->det->currency_id >
0)
{
$currency=new Acc_Currency($obj->db,
$obj->det->currency_id);
- $row.= td(nbm($currency->sum_amount($obj->jr_id),4),'
class="num" style="font-style:italic;font-weight: bolder;"');
+ $row.= td(nbm($sum_charge_euro),' class="num"
style="font-style:italic;font-weight: bolder;"');
}
echo tr($row);
@@ -287,7 +289,7 @@ $str_anc="";
echo $currency->get_code(),$four_space;
echo _("Taux utilisé")," ", $obj->det->currency_rate,$four_space;
echo _("Taux Réf"), " ",$obj->det->currency_rate_ref.$four_space;
- echo _("Montant en devise"),
" ",$currency->sum_amount($obj->jr_id).$four_space;
+ echo _("Montant en devise"),
" ",nbm($sum_charge_euro).$four_space;
}
?>
- [Noalyss-commit] [noalyss] 127/162: Translation + use of httpInput, (continued)
- [Noalyss-commit] [noalyss] 127/162: Translation + use of httpInput, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 128/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 129/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 130/162: use of httpInput, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 134/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 137/162: Currency : for misc. operation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 135/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 136/162: Misc. Operation : input : Missing tag TR, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 140/162: Currency : meaning 1 EUR is worth x currency for Sales, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 141/162: Currency : the meaning is : 1 euro is worth xxx Currency , so we divide the amount with the currency rate to compute the EUR value, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 143/162: Currency : detail operation Purchase , the amount in currency were wrong in the summary,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 132/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 138/162: Currency : Precision 6, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 142/162: Currency : history for accounting , correct amount in currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 144/162: remove commented code, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 145/162: Currency : purchase, save all detail also in currency, fix problem with the advance payment, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 146/162: Currency : detail operation Sale , the amount in currency were wrong in the summary, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 139/162: Currency : precision 6, display default currency , protect used currency against delete, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 147/162: Task #1660 : place the button for the inventory on the top, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 148/162: New function findSide return D if number is <0, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 155/162: Protect parameters, Dany De Bontridder, 2020/07/11