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

SF.net SVN: ledger-smb: [1567] branches/1.2/bin/rp.pl



Revision: 1567
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1567&view=rev
Author:   tetragon
Date:     2007-09-11 11:39:02 -0700 (Tue, 11 Sep 2007)

Log Message:
-----------
Some formatting fixes to the inventory activity report

Modified Paths:
--------------
    branches/1.2/bin/rp.pl

Modified: branches/1.2/bin/rp.pl
===================================================================
--- branches/1.2/bin/rp.pl	2007-09-11 17:11:08 UTC (rev 1566)
+++ branches/1.2/bin/rp.pl	2007-09-11 18:39:02 UTC (rev 1567)
@@ -984,10 +984,15 @@
         $ref->{partnumber} = qq|<a href="$pnumhref">$ref->{partnumber}</a>|;
         $ref->{sold}       = qq|<a href="$soldhref">$ref->{sold}</a>|;
         $ref->{received}   = qq|<a href="$rechref">$ref->{received}<a/>|;
+        $ref->{revenue}    =
+          $form->format_amount( \%myconfig, $ref->{revenue}, 2, '&nbsp;' );
+        $ref->{expenses}   =
+          $form->format_amount( \%myconfig, $ref->{expenses}, 2, '&nbsp;' );
+        $ref->{expense}    = $ref->{expenses};
         map { $column_data{$_} = "<td>&nbsp;</td>" } @column_index;
 
         print qq|
-      <tr class=listrow$i>
+      <tr class="listrow$i">
       |;
         map { print "<td>$ref->{$_}</td>\n" } @column_index;
 


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