]> git.koha-community.org Git - koha.git/commit
Bug 15036: Do not overwrite complete status in basket ops
authorColin Campbell <colin.campbell@ptfs-europe.com>
Tue, 20 Oct 2015 13:19:35 +0000 (14:19 +0100)
committerLiz Rea <wizzyrea@gmail.com>
Thu, 10 Dec 2015 02:43:12 +0000 (15:43 +1300)
commitb10ccd466592250f2b40f182e9d5e1db91d1dcab
treee27f359e32c986a5109e11fbddbefbd9bf0a9b4d
parent37ca7f59fc7ab863cffff15b06d4b0d29844245a
Bug 15036: Do not overwrite complete status in basket ops

Reopening or closing a basket should preserve the completed
status for receipted orders.

This patch excludes orderlines with the completed status
from having their status rewritten as a result of the
change in basket status

Made the subroutines involved more efficient by removing an
unnecessary loop and by not fetching a large amount of
superfluous data

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4a4dbbf1237c93e0233eef0600015c9be3320bf0)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 9dace4e21e33f1b92e1e2db7ef72435539895794)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
C4/Acquisition.pm