From 3bf12ca19353b1b305043a70e0140976bccf2d87 Mon Sep 17 00:00:00 2001 From: ATM john Date: Thu, 8 Oct 2020 19:10:41 +0200 Subject: [PATCH 1/3] Fix total loan calculation --- htdocs/projet/element.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index 5f400dfe7b7..dcdf9a24281 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -734,7 +734,7 @@ foreach ($listofreferent as $key => $value) || !empty($dates) && empty($datee) && $loanSchedule->datep >= $dates && $loanSchedule->datep <= dol_now() || empty($dates) && !empty($datee) && $loanSchedule->datep <= $datee ) { - $total_ht_by_line = -$loanSchedule->amount_capital; + $total_ht_by_line-= $loanSchedule->amount_capital; } } } From e854cce158fd490113e902c82009b240486c1cf3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 8 Oct 2020 19:23:35 +0200 Subject: [PATCH 2/3] Update element.php --- htdocs/projet/element.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index dcdf9a24281..c513123c9bf 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -734,7 +734,7 @@ foreach ($listofreferent as $key => $value) || !empty($dates) && empty($datee) && $loanSchedule->datep >= $dates && $loanSchedule->datep <= dol_now() || empty($dates) && !empty($datee) && $loanSchedule->datep <= $datee ) { - $total_ht_by_line-= $loanSchedule->amount_capital; + $total_ht_by_line -= $loanSchedule->amount_capital; } } } From 3b7b4312cb1e5321040e97956e8a37860f5cb4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Hahn?= Date: Fri, 9 Oct 2020 11:13:11 +0200 Subject: [PATCH 3/3] Fix for #14957 and probably a lot of other issues Convert special characters for a valid use in xml documents --- htdocs/includes/odtphp/odf.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php index 45e442462b4..d84559eb459 100644 --- a/htdocs/includes/odtphp/odf.php +++ b/htdocs/includes/odtphp/odf.php @@ -141,6 +141,7 @@ class Odf //} } + $value = $encode ? htmlspecialchars($value) : $value; $value = ($charset == 'ISO-8859') ? utf8_encode($value) : $value; // Check if the value includes html tags