[Koha-bugs] [Bug 12844] Introduce a centralized way to display prices
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Aug 28 16:55:57 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12844
--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 31258
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31258&action=edit
Bug 12844: New module to manage prices into Koha
This patch introduces a new module to manage prices into Koha and
especially the acquisition module.
How to use is:
1/ You can use it in a perl script/module:
my $price = Koha::Number::Price->new(3);
$price->format; # Will display 3.00 (or 3,00 depending on the CurrencyFormat
syspref).
$price->format({with_symbol => 1}); # Will display €3.00 (or [$]3,00
depending on the CurrencyFormat syspref).
2/ But this module is usefull to display the price from a template file.
[% my_price | Price %]
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list