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

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



Revision: 5739
          http://sourceforge.net/p/ledger-smb/code/5739
Author:   einhverfr
Date:     2013-05-02 10:43:10 +0000 (Thu, 02 May 2013)
Log Message:
-----------
Merging Nick P's patch for cash transfer enforces ticked 'FX' boxes, issue 802

Modified Paths:
--------------
    trunk/Changelog
    trunk/UI/journal/journal_entry.html
    trunk/bin/gl.pl

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2013-05-02 10:35:04 UTC (rev 5738)
+++ trunk/Changelog	2013-05-02 10:43:10 UTC (rev 5739)
@@ -87,6 +87,7 @@
 * Fixed multiple blank line handling for pdfs (Chris T)
 * Fixed multiple repeat entries in chart of accounts drop down (Nick P, 812)
 * Fixed transaction list empty if searched by creditor name (Nick P, 806)
+* Fixed cash transfer enforces ticked 'FX' boxes (Nick P, 802)
 
 Nick P is Nick Prater
 

Modified: trunk/UI/journal/journal_entry.html
===================================================================
--- trunk/UI/journal/journal_entry.html	2013-05-02 10:35:04 UTC (rev 5738)
+++ trunk/UI/journal/journal_entry.html	2013-05-02 10:43:10 UTC (rev 5739)
@@ -170,18 +170,18 @@
 		      <td>
 
 			    <?lsmb IF  displayrow.fx_transactionset == 1 ?>
-					    <?lsmb PROCESS label element_data = {
-					      text = text('x')
-					      align = 'right'
-				              id = "fxt_$INDEX"
-                                               } 
-					      ?>
-			   
+			                   <?lsmb PROCESS input element_data = {
+					      value = 1
+					      type = "checkbox"
+					      checked = "true"
+					      name = "fx_transaction_$INDEX"
+					      id = "fxt_$INDEX"
+                                              } ?>
 			    <?lsmb ELSE ?>
 			                   <?lsmb PROCESS input element_data = {
 					      value = 1
 					      type = "checkbox"
-					      checked = 1
+					      checked = ""
 					      name = "fx_transaction_$INDEX"
 					      id = "fxt_$INDEX"
                                               } ?>

Modified: trunk/bin/gl.pl
===================================================================
--- trunk/bin/gl.pl	2013-05-02 10:35:04 UTC (rev 5738)
+++ trunk/bin/gl.pl	2013-05-02 10:43:10 UTC (rev 5739)
@@ -441,7 +441,6 @@
 			      if ( $i < $form->{rowcount} )
 			      {					      
 						    $temphash1->{accno}=$form->{"accno_$i"};
-						    $temhash1->{fx_transaction}=$form->{"fx_transaction_$i"};
 
 						    if ( $form->{projectset} and $form->{"projectnumber_$i"} ) {
 							$temphash1->{projectnumber}=$form->{"projectnumber_$i"}; 
@@ -451,7 +450,7 @@
 						    
 						    if ( $form->{transfer} and $form->{"fx_transaction_$i"})
 						    {
-							  $hiddens{"fx_transaction_$i"}=1; 
+							$temphash1->{fx_transactionset}=1; 
 						    }
 						    else 
 						    {

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