[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/19: New version of libreoffice use the num
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 05/19: New version of libreoffice use the numeric in another way |
Date: |
Sat, 21 Jul 2018 07:47:38 -0400 (EDT) |
sparkyx pushed a commit to tag r700-currency-005
in repository noalyss.
commit e12848f5779168a9c26764bec7b385f2c5a81fb1
Author: Dany De Bontridder <address@hidden>
Date: Fri Apr 20 21:36:39 2018 +0200
New version of libreoffice use the numeric in another way
---
include/class/acc_bilan.class.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/class/acc_bilan.class.php
b/include/class/acc_bilan.class.php
index 1dff742..8f17f63 100644
--- a/include/class/acc_bilan.class.php
+++ b/include/class/acc_bilan.class.php
@@ -454,9 +454,14 @@ class Acc_Bilan
/* allow numeric cel in ODT for the formatting and
formula */
if ( is_numeric($a) )
{
+ /* -- for libreOffice < 5 or openoffice -- */
$searched='office:value-type="string"><text:p>'.$f2_str;
$replaced='office:value-type="float"
office:value="'.$a.'"><text:p>'.$f2_str;
$line_rtf=str_replace($searched, $replaced,
$line_rtf);
+ /* -- for libreOffice > 5 -- */
+ $searched='office:value-type="string"
calcext:value-type="string"><text:p>'.$f2_str;
+ $replaced='office:value-type="float"
office:value="'.$a.'" calcext:value-type="float"><text:p>'.$f2_str;
+ $line_rtf=str_replace($searched, $replaced,
$line_rtf);
}
- [Noalyss-commit] [noalyss] tag r700-currency-005 created (now 457290f), Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 03/19: Update documentation, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 01/19: typo, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 05/19: New version of libreoffice use the numeric in another way,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 06/19: Create invoice : New version of libreoffice use the numeric in another way, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 09/19: integrate fix for bug in insert_quant_purchase which cannot save private fee Conflicts: include/sql/patch/upgrade128.sql, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 10/19: Fix todo_list : if list empty , gets an error in php 7.2, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 13/19: Security fix : f_id is a number, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 15/19: Task #1619 : CFGLED change label for "Donner ici la fiche du compte en banque", Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 02/19: Task #448 : add currency to card -> history + export CSV, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 14/19: Security fix : f_id is a number, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 16/19: translation, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 11/19: Security : direct injection, Dany De Bontridder, 2018/07/21
- [Noalyss-commit] [noalyss] 19/19: Merge branch 'master' into r700-currency, Dany De Bontridder, 2018/07/21