[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 128/173: Merge branch 'dev7112' into entrepri
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 128/173: Merge branch 'dev7112' into entreprise |
Date: |
Mon, 22 Mar 2021 12:59:08 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 2a96573b3dc6e4f38dded38c739dcce1cb845f2a
Merge: aadb421 13d052a
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Fri Nov 22 23:03:03 2019 +0100
Merge branch 'dev7112' into entreprise
include/class/acc_ledger_purchase.class.php | 9 +++++++--
include/class/acc_ledger_sold.class.php | 4 ++++
include/lib/inum.class.php | 2 +-
3 files changed, 12 insertions(+), 3 deletions(-)
diff --cc include/class/acc_ledger_purchase.class.php
index fab39c6,a3e74c0..9475b32
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@@ -706,7 -669,10 +706,12 @@@ class Acc_Ledger_Purchase extends Acc_
}
// insert into quant_purchase
//-----
++
+ if (empty( ${'e_march' . $i . '_price'} ) ) ${'e_march' . $i
. '_price'} = 0;
+ if (empty( ${'e_march' . $i } ) ) ${'e_march' . $i } = 0;
+ if (empty( ${'e_quant' . $i } ) ) ${'e_quant' . $i } = 0;
+ $price_euro=bcdiv(${'e_march'.$i.'_price'}, $p_currency_rate);
+
if ( $g_parameter->MY_TVA_USE=='Y')
{
@@@ -1723,31 -1607,10 +1728,31 @@@
{$tot_amount}
</td>
<td class="num">
- {$tot}
+ {$tot} {$str_code}
</td>
+</tr>
EOF;
- } else {
+ if ($p_currency_code !=0) {
+ $rate=_("Taux ");
+$r.=<<<EOF
+<tr class="highlight">
+ {$decalage}
+ <td>
+
+ </td>
+ <td class="num">
+
+ </td>
+ <td class="num">
+ {$rate} {$p_currency_rate}
+ </td>
+ <td class="num">
+ {$tot_eur} EUR
+ </td>
+</tr>
+EOF;
- }
- }else {
++ } // if ($p_currency_code !=0
++ }else { // if $g_parameter->MY_TVA_USE=='Y'
$r.=<<<EOF
<tr class="highlight">
{$decalage}
diff --cc include/class/acc_ledger_sold.class.php
index 4971468,da6991c..3d1e2ef
--- a/include/class/acc_ledger_sold.class.php
+++ b/include/class/acc_ledger_sold.class.php
@@@ -412,8 -374,9 +412,12 @@@ class Acc_Ledger_Sold extends Acc_Ledge
$op->oa_description = sql_string($e_comm);
$op->save_form_plan($_POST, $i, $j_id);
}
+ if (empty( ${'e_march' . $i . '_price'} ) ) ${'e_march' . $i
. '_price'} = 0;
+ if (empty( ${'e_march' . $i } ) ) ${'e_march' . $i } = 0;
+ if (empty( ${'e_quant' . $i } ) ) ${'e_quant' . $i } = 0;
+
+ $price_euro=bcdiv(${'e_march'.$i.'_price'}, $p_currency_rate);
++
if ($g_parameter->MY_TVA_USE == 'Y') {
/* save into quant_sold */
$r = $this->db->exec_sql("select insert_quant_sold
($1,$2,$3,$4,$5,$6,$7,$8,$9,$10)", array(null, /* 1 */
- [Noalyss-commit] [noalyss] 117/173: Acc_Ledger : problem with acc_ledger::load(), (continued)
- [Noalyss-commit] [noalyss] 117/173: Acc_Ledger : problem with acc_ledger::load(), Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 125/173: Merge branch 'dev-7200' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 130/173: fixup! Merge branch 'dev-7200' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 99/173: Merge branch 'Cosmetic-7100' into 'entreprise', Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 100/173: Merge branch 'entreprise' of gitlab.noalyss.eu:noalyss/noalyss into entreprise * index.css logo size, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 120/173: test : compute min et max periode, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 123/173: Improve Scenario Test, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 129/173: Merge branch 'dev-7200' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 132/173: Bug solde is rounded and doesn't have decimal, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 126/173: Use connection and not global, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 128/173: Merge branch 'dev7112' into entreprise,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 140/173: Cleanup + new logo, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 92/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 95/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 97/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 102/173: Task #0001698: Problème affichage historique fiches, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 141/173: Merge commit '3e075a0a1aa8b6e42c458571ef0380a9c38f18fa' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 106/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 108/173: Bug with p_jrn, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 109/173: Task #1759 = PRINTBAL sur 4 colonnes, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 112/173: Save_form_plan must use the array, Dany De Bontridder, 2021/03/22