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

SF.net SVN: ledger-smb:[3957] branches/1.3/bin/ir.pl



Revision: 3957
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3957&view=rev
Author:   tshvr
Date:     2011-11-04 10:42:54 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
format amount for display

Modified Paths:
--------------
    branches/1.3/bin/ir.pl

Modified: branches/1.3/bin/ir.pl
===================================================================
--- branches/1.3/bin/ir.pl	2011-11-04 08:15:43 UTC (rev 3956)
+++ branches/1.3/bin/ir.pl	2011-11-04 10:42:54 UTC (rev 3957)
@@ -609,10 +609,11 @@
     	        $form->{invtotal} += $form->round_amount($form->{taxes}{$item}, 2);
                 $form->{"${taccno}_total"} =
                     $form->round_amount($form->{taxes}{$item}, 2);
+                my $item_total_formatted=$form->format_amount(\%myconfig,$form->{"${item}_total"},2,0);
                     $tax .= qq|
 	    	    <tr>
 		      <th align=right>$form->{"${item}_description"}</th>
-		      <td align=right>$form->{"${item}_total"}</td>
+		      <td align=right>$item_total_formatted</td>
 	    	    </tr>
 |;
             }

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