[Koha-bugs] [Bug 29184] Warn from chargelostitem when no replacement cost set for item
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 23 00:31:15 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29184
Fridolin Somers <fridolin.somers at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fridolin.somers at biblibre.co
| |m
--- Comment #2 from Fridolin Somers <fridolin.somers at biblibre.com> ---
We see in chargelostitem() :
if ($usedefaultreplacementcost && $amount == 0 && $defaultreplacecost){
Shouldn't we patch with :
$amount = $amount // 0
Items sql table contains :
`replacementprice` decimal(28,6) DEFAULT NULL
So indeed default in undef.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list