phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r295 - trunk/import_card/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r295 - trunk/import_card/include
Date: Sat, 4 Feb 2012 21:17:00 +0100 (CET)

Author: danydb
Date: 2012-02-03 23:23:55 +0100 (Fri, 03 Feb 2012)
New Revision: 295

Modified:
   trunk/import_card/include/class_import_card.php
Log:
Fix bug  : if Accounting is not given cannot generate it

Modified: trunk/import_card/include/class_import_card.php
===================================================================
--- trunk/import_card/include/class_import_card.php     2012-01-23 09:43:20 UTC 
(rev 294)
+++ trunk/import_card/include/class_import_card.php     2012-02-03 22:23:55 UTC 
(rev 295)
@@ -24,7 +24,7 @@
  * \brief Manage import
  */
 
-class Import_Card 
+class Import_Card
 {
   /**
    address@hidden for the form we have here all the hidden variables
@@ -62,7 +62,7 @@
 
   }
   /**
-   *Test the CSV file, show the choosed delimiter, the CSV parsed, 
+   *Test the CSV file, show the choosed delimiter, the CSV parsed,
    * and replace column header by attribute
    address@hidden 0 ok,  -1 error
    */
@@ -99,7 +99,7 @@
   'rdelimiter' => string ',' (length=1)
   'encodage' => string '' (length=0)
   'record_import' => string 'Valider' (length=7)
-  'head_col' => 
+  'head_col' =>
     array
       0 => string '15' (length=2)
       1 => string '14' (length=2)
@@ -147,7 +147,7 @@
        return -1;
       }
 
-      
+
     /*
      * read the file and record card
      */
@@ -191,7 +191,7 @@
        if ($valid_accounting==0)
          {
            $attr=sprintf('av_text%d',ATTR_DEF_ACCOUNT);
-           $array[$attr]='FID';
+           $array[$attr]='';
          }
        $fiche->insert($rfichedef,$array);
        echo '</tr>';



---
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]