phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/import Import_fra_BKK_csv


From: Sigurd Nes
Subject: [Phpgroupware-cvs] property/inc/import Import_fra_BKK_csv
Date: Wed, 17 Jan 2007 13:44:09 +0000

CVSROOT:        /sources/phpgroupware
Module name:    property
Changes by:     Sigurd Nes <sigurdne>   07/01/17 13:44:09

Modified files:
        inc/import     : Import_fra_BKK_csv 

Log message:
        start the array at 0

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/inc/import/Import_fra_BKK_csv?cvsroot=phpgroupware&r1=1.5&r2=1.6

Patches:
Index: Import_fra_BKK_csv
===================================================================
RCS file: /sources/phpgroupware/property/inc/import/Import_fra_BKK_csv,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- Import_fra_BKK_csv  11 Jan 2007 10:23:22 -0000      1.5
+++ Import_fra_BKK_csv  17 Jan 2007 13:44:09 -0000      1.6
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package property
        * @subpackage import
-       * @version $Id: Import_fra_BKK_csv,v 1.5 2007/01/11 10:23:22 sigurdne 
Exp $
+       * @version $Id: Import_fra_BKK_csv,v 1.6 2007/01/17 13:44:09 sigurdne 
Exp $
        */
 
        /**
@@ -88,7 +88,7 @@
                        $tsvfile        = $invoice_common['tsvfile'];
                        $conv_type      = $invoice_common['conv_type'];
 
-                       if(!$buffer[$this->id]['kidnr'] = 
$invoice_common['kid_nr'])
+                       if(!$buffer[0]['kidnr'] = $invoice_common['kid_nr'])
                        {
                                echo '<b>KID-nummer mangler</b><br><br>';
                                return;
@@ -101,7 +101,7 @@
                        while ($data = fgetcsv($fp,8000,";"))
                        {
                                $num = count($this->import_bkk);
-                               $this->id++;
+                               
                                $this->currentrecord = array();
                                for ($c=0; $c<$num; $c++ )
                                {
@@ -130,6 +130,7 @@
                                }
                                
                                unset($column_header);
+                               $this->id++;
                        }
 
                        fclose($fp);
@@ -258,6 +259,7 @@
                                        $buffer[$this->id]['kostra_id'] = 
$this->soXport->get_kostra_id($buffer[$this->id]['dima']);
                                }
                        }
+
                        return $buffer;
                }
 




reply via email to

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