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
{
/**
*@brief 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
*@return 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
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev