phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r486 - trunk/rapport_avance/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r486 - trunk/rapport_avance/include
Date: Tue, 30 Apr 2013 23:31:42 +0200 (CEST)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]