https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25750
Bug ID: 25750
Summary: Fallback to ecost_tax_included, ecost_tax_excluded not
happening when no 'Actual cost' entered
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Acquisitions
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
The patchsets on bugs 23523 and 23522 set and display respectively the
unitprice_tax_included/unitprice_tax_excluded if 'Actual cost' has been
entered.
If 'Actual cost' is not entered entered then Koha should fallback to
ecost_tax_included/ecost_tax_excluded.
However the fallback is not working correctly. When 'Actual cost' is not set it
has a value of 0.00 and Koha evaluates 0.00 to true so
ecost_tax_included/ecost_tax_excluded is never used.
e.g. In this fallback:
my $cost_tax_included = $line{unitprice_tax_included} ||
$line{ecost_tax_included};
my $cost_tax_included = 0.00 || 7.23
$cost_tax_included is set to 0.00 as Perl treats 0.00 as true.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/