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

SF.net SVN: ledger-smb:[3077] addons/1.3/import_trans/trunk/scripts/ import_trans.pl



Revision: 3077
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3077&view=rev
Author:   einhverfr
Date:     2010-10-01 18:40:10 +0000 (Fri, 01 Oct 2010)

Log Message:
-----------
Correcting error on gl import

Modified Paths:
--------------
    addons/1.3/import_trans/trunk/scripts/import_trans.pl

Modified: addons/1.3/import_trans/trunk/scripts/import_trans.pl
===================================================================
--- addons/1.3/import_trans/trunk/scripts/import_trans.pl	2010-09-30 22:35:50 UTC (rev 3076)
+++ addons/1.3/import_trans/trunk/scripts/import_trans.pl	2010-10-01 18:40:10 UTC (rev 3077)
@@ -50,10 +50,10 @@
                           );
                        }
                        next if !$ref->[1] and !$ref->[2];
-                       ++$form->{rowcount};
                        for my $col (@{$cols->{$request->{type}}}){
                            $form->{"${col}_$form->{rowcount}"} = shift @$ref;
                        }
+                       ++$form->{rowcount};
                    }
                    GL->post_transaction($request->{_user}, $form);
                 },


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