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

SF.net SVN: ledger-smb:[3040] addons/1.3/assets/trunk/scripts/asset.pl



Revision: 3040
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3040&view=rev
Author:   einhverfr
Date:     2010-08-05 20:52:22 +0000 (Thu, 05 Aug 2010)

Log Message:
-----------
Correcting asset import file type error

Modified Paths:
--------------
    addons/1.3/assets/trunk/scripts/asset.pl

Modified: addons/1.3/assets/trunk/scripts/asset.pl
===================================================================
--- addons/1.3/assets/trunk/scripts/asset.pl	2010-08-05 16:19:15 UTC (rev 3039)
+++ addons/1.3/assets/trunk/scripts/asset.pl	2010-08-05 20:52:22 UTC (rev 3040)
@@ -868,7 +868,11 @@
     for my $a (@{$asset->{asset_accounts}}){
        $asset_account->{"$a->{accno}"} = $a;
     }
-    for my $ai ($asset->import_file($request->{import_file})){
+    for my $ail ($asset->import_file($request->{import_file})){
+        my $ai = {};
+        for my $field (@file_columns){
+          $ai->{$field} = $field;
+        }
         $ai->{dep_report_id} = $report_results->{id};
         $ai->{location} = $location->{"$ai->{location}"};
         $ai->{department} = $department->{"$ai->{department}"};


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.