[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 50/162: Create invoice : New version of libre
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 50/162: Create invoice : New version of libreoffice use the numeric in another way |
Date: |
Sat, 11 Jul 2020 13:23:33 -0400 (EDT) |
sparkyx pushed a commit to annotated tag E-4
in repository noalyss.
commit d4579aca324772132ebac8880faee3224f055701
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: 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] 33/162: Task #448 : correct bug if VAT Rate = 0 , amount was reset, (continued)
- [Noalyss-commit] [noalyss] 33/162: Task #448 : correct bug if VAT Rate = 0 , amount was reset, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 41/162: Fix bug quant_purchase , private fee not saved, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 42/162: remove debug, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 43/162: Missing ob_start, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 45/162: typo, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 39/162: integrate fix for bug in insert_quant_purchase which cannot save private fee, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 48/162: Protect function nb , return the string if the parameter is not a float, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 34/162: Task #448 : Currency : purchase, fix bug for autoreverse VAT, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 37/162: comment, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 46/162: Task #448 : add currency to card -> history + export CSV, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 50/162: Create invoice : New version of libreoffice use the numeric in another way,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 55/162: Security : direct injection, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 52/162: Bug 1600 : alphanumeric accounting must be case insensitive, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 56/162: Fix : security fixes see rapport exakat (Damien Seguy), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 57/162: Security fix : f_id is a number, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 62/162: Merge master, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 38/162: Task #448 : currency improve detail of operation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 40/162: Fix bug quant_purchase , private fee not saved, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 44/162: Task #448 : add info about currency into History of cards and accounting, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 47/162: Update documentation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 54/162: Fix todo_list : if list empty , gets an error in php 7.2, Dany De Bontridder, 2020/07/11