]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Sun, 29 Nov 2015 20:47:20 +0000 (21:47 +0100)
commit9dace4e21e33f1b92e1e2db7ef72435539895794
tree84edd90a6dadb2a172c50b1983e59595c52c4942
parentee185cfd1afed08d20f226ef8a2c62df2c96b6e8
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>
C4/Acquisition.pm