Create invoice : New version of libreoffice use the numeric in another way
This commit is contained in:
parent
e12848f577
commit
d4579aca32
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue