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

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



Revision: 1727
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1727&view=rev
Author:   tetragon
Date:     2007-10-09 08:01:25 -0700 (Tue, 09 Oct 2007)

Log Message:
-----------
Adjusting 'Current Earnings' to only indent when appropriate

Modified Paths:
--------------
    trunk/bin/rp.pl
    trunk/templates/demo/balance_sheet.html

Modified: trunk/bin/rp.pl
===================================================================
--- trunk/bin/rp.pl	2007-10-09 14:55:27 UTC (rev 1726)
+++ trunk/bin/rp.pl	2007-10-09 15:01:25 UTC (rev 1727)
@@ -824,6 +824,7 @@
 
     }
 
+    $form->{login} = 'test';
     print qq|
 
 $gifi
@@ -1096,11 +1097,6 @@
 sub generate_balance_sheet {
 
 	##SC: START HTML
-    $form->{padding} = "  ";
-    $form->{bold}    = "<b>";
-    $form->{endbold} = "</b>";
-    $form->{br}      = "<br>";
-
     RP->balance_sheet( \%myconfig, \%$form );
 
     $form->{asofdate} = $form->current_date( \%myconfig )
@@ -1111,10 +1107,11 @@
     ( $form->{department} ) = split /--/, $form->{department};
 
     # define Current Earnings account
-    $padding = ( $form->{l_heading} ) ? $form->{padding} : "";
     push(
-        @{ $form->{equity_account} }, { current_earnings => 1,
-        text => $locale->text('Current Earnings')}
+        @{ $form->{equity_account} }, {
+            current_earnings => 1,
+            text => $locale->text('Current Earnings')
+            },
     );
 
     $form->{this_period} = $locale->date( \%myconfig, $form->{asofdate}, 0 );

Modified: trunk/templates/demo/balance_sheet.html
===================================================================
--- trunk/templates/demo/balance_sheet.html	2007-10-09 14:55:27 UTC (rev 1726)
+++ trunk/templates/demo/balance_sheet.html	2007-10-09 15:01:25 UTC (rev 1727)
@@ -46,7 +46,7 @@
 		account_data.text; ?></a><?lsmb
 	ELSIF account_data.subtotal; ?><b>&nbsp;&nbsp;<?lsmb
 		account_data.text; ?></b><?lsmb
-	ELSIF account_data.current_earnings; ?>&nbsp;&nbsp;<?lsmb
+	ELSIF account_data.current_earnings; IF l_heading ?>&nbsp;&nbsp;<?lsmb END;
 		account_data.text;
 	ELSE;
 		account_data;


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