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

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



Revision: 5774
          http://sourceforge.net/p/ledger-smb/code/5774
Author:   einhverfr
Date:     2013-05-12 08:43:58 +0000 (Sun, 12 May 2013)
Log Message:
-----------
Two related fixes:
1.   Post as shown does not show up for GL drafts, and
2.   Cash transfer drafts cannot be effectively reviewed as GL drafts due to missing fx line checkboxes.

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

Modified: trunk/UI/journal/journal_entry.html
===================================================================
--- trunk/UI/journal/journal_entry.html	2013-05-12 08:17:43 UTC (rev 5773)
+++ trunk/UI/journal/journal_entry.html	2013-05-12 08:43:58 UTC (rev 5774)
@@ -124,9 +124,7 @@
       <table width="100%">
 	  <tr class="listheading">
 	  <th class="listheading"><?lsmb text('Account') ?></th>
-	  <?lsmb IF form.transfer == 1 ?>
-	     <th class="listheading"><?lsmb text('FX') ?></th>
-	  <?lsmb END ?>
+	  <th class="listheading"><?lsmb text('FX') ?></th>
           <th class="listheading"><?lsmb text('Debit') ?></th>
 	  <th class="listheading"><?lsmb text('Credit') ?></th>
 	  <th class="listheading"><?lsmb text('Source') ?></th>
@@ -166,7 +164,6 @@
 	  
 		 </td>
 	      
-		  <?lsmb IF form.transfer == 1 ?>
 		      <td>
 
 			    <?lsmb IF  displayrow.fx_transactionset == 1 ?>
@@ -190,7 +187,6 @@
 
 		      </td>
 		
-		  <?lsmb END ?>
 		  
 		  <td>
 			  <?lsmb PROCESS input element_data = {
@@ -285,9 +281,7 @@
 	<?lsmb END ?>
         <tr class="listtotal">
 	  <th>&nbsp;</th>
-	  <?lsmb IF form.transfer == 1 ?>
 	     <th class="listheading">&nbsp;</th>
-	  <?lsmb END ?>
 	  <th class="listtotal" align="right">
 			<?lsmb form.totaldebit ?>
 	  </th>

Modified: trunk/bin/gl.pl
===================================================================
--- trunk/bin/gl.pl	2013-05-12 08:17:43 UTC (rev 5773)
+++ trunk/bin/gl.pl	2013-05-12 08:43:58 UTC (rev 5774)
@@ -309,7 +309,7 @@
 			value => $locale->text('Post as Saved') };
 		$a{approve} = 1;
 		$a{edit_and_approve} = 1;
-		if (grep /^lsmb_$form->{company}__draft_modify$/, @{$form->{_roles}}){
+		if (grep /__draft_edit$/, @{$form->{_roles}}){
 		    $button{edit_and_approve} = { 
 			ndx   => 4, 
 			key   => 'O', 

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