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

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



Revision: 3047
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3047&view=rev
Author:   einhverfr
Date:     2010-08-12 16:00:28 +0000 (Thu, 12 Aug 2010)

Log Message:
-----------
Minor tweak to file parsing to handle asset classes, locations, and departments properly

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-11 16:40:18 UTC (rev 3046)
+++ addons/1.3/assets/trunk/scripts/asset.pl	2010-08-12 16:00:28 UTC (rev 3047)
@@ -881,9 +881,9 @@
            $ai->{usable_life} = $ai->{usable_life}/12;
         }
         $ai->{dep_report_id} = $report_results->{id};
-        $ai->{location} = $location->{"$ai->{location}"};
-        $ai->{department} = $department->{"$ai->{department}"};
-        $ai->{asset_class} = $class->{"$ai->{asset_class}"}->{id};
+        $ai->{location_id} = $location->{"$ai->{location}"};
+        $ai->{department_id} = $department->{"$ai->{department}"};
+        $ai->{asset_class_id} = $class->{"$ai->{asset_class}"}->{id};
         $ai->{dep_account_id} = $class->{"$ai->{asset_class}"}->{dep_account_id};
         $ai->{asset_account} = $asset_account->{"$ai->{asset_account}"}->{id};
         


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