Author: danydb
Date: 2013-04-30 23:31:41 +0200 (Tue, 30 Apr 2013)
New Revision: 486

Modified:
   trunk/rapport_avance/include/class_rapav_declaration.php
Log:
0000739: G?\195?\169n?\195?\169ration de d?\195?\169claration
respect type numeric for ODT

Modified: trunk/rapport_avance/include/class_rapav_declaration.php
===================================================================
--- trunk/rapport_avance/include/class_rapav_declaration.php    2013-04-30 
21:25:43 UTC (rev 485)
+++ trunk/rapport_avance/include/class_rapav_declaration.php    2013-04-30 
21:31:41 UTC (rev 486)
@@ -194,6 +194,12 @@
                        // for each code replace in p_filename the code 
surrounded by << >> by the amount (value) or &lt; or &gt;
                        foreach ($array as $key=>$value)
                        {
+                                if ( is_numeric($value['dr_amount']) )
+                               {
+                                       
$searched='office:value-type="string"><text:p>'.$value['code'];
+                                       $replaced='office:value-type="float" 
office:value="'.$value['dr_amount'].'"><text:p>'.$value['code'];
+                                       $buffer=str_replace($searched, 
$replaced, $buffer);
+                               }
                                
$buffer=str_replace($value['code'],$value['dr_amount'],$buffer);
                        }
                        // write to output



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu

_______________________________________________
Phpcompta  est un logiciel libre de comptabilit&#233; en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to