formating currency values
This commit is contained in:
parent
1d5b1646ef
commit
eb4d4f8607
|
|
@ -93,11 +93,11 @@ for (my $i=0;$i<$count;$i++){
|
|||
$line{notes} = $results[$i]->{'notes'};
|
||||
$line{author} = $results[$i]->{'author'};
|
||||
$line{i} = $i;
|
||||
$line{rrp} = $results[$i]->{'rrp'};
|
||||
$line{ecost} = $results[$i]->{'ecost'};
|
||||
$line{rrp} = sprintf("%.2f",$results[$i]->{'rrp'});
|
||||
$line{ecost} = sprintf("%.2f",$results[$i]->{'ecost'});
|
||||
$line{quantity} = $results[$i]->{'quantity'};
|
||||
$line{quantityrecieved} = $results[$i]->{'quantityreceived'};
|
||||
$line{line_total} = $line_total;
|
||||
$line{line_total} = sprintf("%.2f",$line_total);
|
||||
$line{biblionumber} = $results[$i]->{'biblionumber'};
|
||||
$line{bookfundid} = $results[$i]->{'bookfundid'};
|
||||
$line{odd} = $i %2;
|
||||
|
|
|
|||
Loading…
Reference in New Issue