Formatting currency display to 2 decimal places. Enabling GST system preference to control display of GST values
This commit is contained in:
parent
1d49315432
commit
04200feea4
|
|
@ -134,16 +134,14 @@ $template->param(basketno => $basketno,
|
|||
entrydate => format_date($results[0]->{'entrydate'}),
|
||||
books_loop => \@books_loop,
|
||||
count =>$count,
|
||||
sub_total => $sub_total,
|
||||
gist => $gist,
|
||||
grand_total =>$grand_total,
|
||||
sub_total_est => $sub_total_est,
|
||||
gist_est => $gist_est,
|
||||
grand_total_est =>$grand_total_est,
|
||||
sub_total => sprintf("%.2f",$sub_total),
|
||||
gist => sprintf("%.2f",$gist),
|
||||
grand_total =>sprintf("%.2f",$grand_total),
|
||||
sub_total_est => sprintf("%.2f",$sub_total_est),
|
||||
gist_est => sprintf("%.2f",$gist_est),
|
||||
grand_total_est =>sprintf("%.2f",$grand_total_est),
|
||||
currency => $booksellers[0]->{'listprice'},
|
||||
qty_total => $qty_total,
|
||||
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
|
||||
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
|
||||
IntranetNav => C4::Context->preference("IntranetNav"),
|
||||
GST => C4::Context->preference("gist"),
|
||||
);
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
|
|||
Loading…
Reference in New Issue