[Koha-bugs] [Bug 9923] New: correction of a bug due to bz 7129
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 25 16:48:53 CET 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9923
Bug ID: 9923
Summary: correction of a bug due to bz 7129
Classification: Unclassified
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Acquisitions
Assignee: koha-bugs at lists.koha-community.org
Reporter: christophe.croullebois at biblibre.com
Created attachment 16858
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16858&action=edit
proposed patch
the patch 7129 introduces a bug if the unitprice is 0.0000.
Instead of showing in this case the 'ecost' if there is not 'unitprice', it
shows 0.00 and the 'Actual cost' must be manually entered.
The line :
if ( @$results[0]->{'unitprice'} == 0 ) {
@$results[0]->{'unitprice'} = '';
was wrote in this perspective.
But sprintf ( "%.2f", with '' or 0 or any string will return 0.00
and then, in the .tt 'unitprice' exists so we have the bad result.
Jared Camins-Esakov : If this is fixing a bug caused by 7129 it should be moved
to a new bug, which can be set straight to
So I create this one and mark it as "Passed QA.".
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list