From eb28f83c754b52795af6aa062a6d415b40aeeb90 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 13 Jul 2024 13:25:20 +0200 Subject: [PATCH] ODS : duplicate in currency --- include/class/acc_operation.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/class/acc_operation.class.php b/include/class/acc_operation.class.php index dc760afd8..0811cfff0 100644 --- a/include/class/acc_operation.class.php +++ b/include/class/acc_operation.class.php @@ -953,11 +953,16 @@ EOF; if (isset ($array["qc_" . $i]) && $array["qc_" . $i] != "") { $array["poste" . $i] = ""; } + + } + $idx=0; + foreach ($operation->det->array as $item) { if ($operation->det->currency_id != 0) { $array['amount'. $idx] = $item['oc_amount']; $idx++; } } + }elseif ( $operation->signature==="ACH" || $operation->signature=="VEN") { $idx=0; foreach ($operation->det->array as $item) {