[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 52/218: Create invoice : New version of libre
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 52/218: Create invoice : New version of libreoffice use the numeric in another way |
Date: |
Thu, 12 Sep 2019 15:58:39 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit d4579aca324772132ebac8880faee3224f055701
Author: Dany De Bontridder <address@hidden>
Date: Sat Apr 21 02:35:14 2018 +0200
Create invoice : New version of libreoffice use the numeric in another way
---
include/class/document.class.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/class/document.class.php b/include/class/document.class.php
index 22cdb9d..03258cf 100644
--- a/include/class/document.class.php
+++ b/include/class/document.class.php
@@ -272,9 +272,14 @@ class Document
*/
if ( is_numeric($value) && $p_type=='OOo')
{
-
$searched='/office:value-type="string"><text:p>'.$pattern.'/';
+ // For libreOffice <=4
+
$searched='/office:value-type="string"><text:p>'.$pattern.'/i';
$replaced='office:value-type="float"
office:value="'.$value.'"><text:p>'.$pattern;
$buffer=preg_replace($searched, $replaced,
$buffer,1);
+ // For libreOffice >=4
+ $searched='/office:value-type="string"
calcext:value-type="string"><text:p>'.$pattern.'/i';
+ $replaced='office:value-type="float"
office:value="'.$value.'" calcext:value-type="float"><text:p>'.$pattern;
+ $buffer=preg_replace($searched, $replaced,
$buffer,1);
}
// replace into the $buffer
// take the position in the buffer
- [Noalyss-commit] [noalyss] 132/218: Translation, (continued)
- [Noalyss-commit] [noalyss] 132/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 133/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 134/218: use of httpInput, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 142/218: Currency : Precision 6, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 147/218: Currency : detail operation Purchase , the amount in currency were wrong in the summary, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 148/218: remove commented code, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 152/218: New function findSide return D if number is <0, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 93/218: translate, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 37/218: comment, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 50/218: Protect function nb , return the string if the parameter is not a float, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 52/218: Create invoice : New version of libreoffice use the numeric in another way,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 56/218: Fix todo_list : if list empty , gets an error in php 7.2, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 60/218: Security fix : f_id is a number, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 57/218: Security : direct injection, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 63/218: CFGLED : security fix : remove $_REQUEST, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 64/218: Merge master, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 72/218: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 83/218: adapt to 7.2 ,init, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 86/218: Currency : show the currency of the ledger when entering info, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 89/218: adapt to 7.2 ,array, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 90/218: Code cleaning : remove SQL with hardcoded value, Dany De Bontridder, 2019/09/12