[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 52/238: Create invoice : New version of libre
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 52/238: Create invoice : New version of libreoffice use the numeric in another way |
Date: |
Sat, 26 Oct 2019 04:40:29 -0400 (EDT) |
sparkyx pushed a commit to annotated tag rel7110
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] 36/238: Bug in QUANT_PURCHASE , dp_dep_priv is not saved, (continued)
- [Noalyss-commit] [noalyss] 36/238: Bug in QUANT_PURCHASE , dp_dep_priv is not saved, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 43/238: Missing ob_start, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 41/238: Fix bug quant_purchase , private fee not saved, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 44/238: Task #448 : add info about currency into History of cards and accounting, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 46/238: Merge branch 'r700-currency' of ssh://ns3git/srv/git/noalyss into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 50/238: Protect function nb , return the string if the parameter is not a float, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 53/238: Missing class : missing class for acc_ledger, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 51/238: New version of libreoffice use the numeric in another way, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 45/238: Fix todo_list : if list empty , gets an error in php 7.2, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 47/238: typo, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 52/238: Create invoice : New version of libreoffice use the numeric in another way,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 65/238: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 68/238: Documentation, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 76/238: Bug : cannot set group, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 37/238: comment, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 40/238: Fix bug quant_purchase , private fee not saved, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 48/238: Task #448 : add currency to card -> history + export CSV, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 58/238: Fix : security fixes see rapport exakat (Damien Seguy), Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 62/238: translation, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 64/238: Merge master, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 59/238: Security fix : f_id is a number, Dany De Bontridder, 2019/10/26