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

SF.net SVN: ledger-smb:[2700] trunk



Revision: 2700
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2700&view=rev
Author:   einhverfr
Date:     2009-06-19 00:03:54 +0000 (Fri, 19 Jun 2009)

Log Message:
-----------
GL fixes

Modified Paths:
--------------
    trunk/LedgerSMB/GL.pm
    trunk/UI/lib/elements.html
    trunk/bin/gl.pl

Modified: trunk/LedgerSMB/GL.pm
===================================================================
--- trunk/LedgerSMB/GL.pm	2009-06-18 16:27:16 UTC (rev 2699)
+++ trunk/LedgerSMB/GL.pm	2009-06-19 00:03:54 UTC (rev 2700)
@@ -159,7 +159,7 @@
     my $credit;
 
     # insert acc_trans transactions
-    for $i ( 1 .. $form->{rowcount} ) {
+    for $i ( 0 .. $form->{rowcount} ) {
 
         $debit  = $form->parse_amount( $myconfig, $form->{"debit_$i"} );
         $credit = $form->parse_amount( $myconfig, $form->{"credit_$i"} );

Modified: trunk/UI/lib/elements.html
===================================================================
--- trunk/UI/lib/elements.html	2009-06-18 16:27:16 UTC (rev 2699)
+++ trunk/UI/lib/elements.html	2009-06-19 00:03:54 UTC (rev 2700)
@@ -123,7 +123,7 @@
 	  ?>
 	  <?lsmb PROCESS auto_label  # Process element label. ?>
 	  <input type="text" class="autocomplete" size="60" value="<?lsmb element_data.initial_value ?>" id="<?lsmb attribute_data.id ?>-ac-search" name="<?lsmb attribute_data.id ?>-ac-search" onclick="this.value='';" onblur="this.value = $('<?lsmb attribute_data.id ?>').value" />
-	  <input type="hidden"<?lsmb all_attributes ?><?lsmb all_custom_attributes ?> value="<?lsmb element_data.initial_value ?>" />
+	  <input type="hidden" id="<?lsmb attribute_data.id ?>" name="<?lsmb element_data.name ?>"  value="<?lsmb element_data.initial_value?>" />
 	  <span class="indicator" id="<?lsmb attribute_data.id ?>-ac-indicator" style="display: none">Working...</span>
 	  <div id="<?lsmb attribute_data.id ?>-ac-choices" class="autocomplete"></div>
 	  <script language="javascript" type="text/javascript"><!--

Modified: trunk/bin/gl.pl
===================================================================
--- trunk/bin/gl.pl	2009-06-18 16:27:16 UTC (rev 2699)
+++ trunk/bin/gl.pl	2009-06-19 00:03:54 UTC (rev 2700)
@@ -341,7 +341,7 @@
   $form->{totaldebit}  = 0;
   $form->{totalcredit} = 0;
 
-  for $i ( 1 .. $form->{rowcount} ) 
+  for $i ( 0 .. $form->{rowcount} ) 
   {
 
         my $temphash1;
@@ -1101,7 +1101,7 @@
       if ( $transdate <= $closedto );
 
     # add up debits and credits
-    for $i ( 1 .. $form->{rowcount} ) {
+    for $i ( 0 .. $form->{rowcount} ) {
         $dr = $form->parse_amount( \%myconfig, $form->{"debit_$i"} );
         $cr = $form->parse_amount( \%myconfig, $form->{"credit_$i"} );
 


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