An errant update from bug 22563 could lead to cases of LOST_RETURNED as
aposed to LOST_RETURN as an account_credit_type. This patch adds code to
deal with those cases to the update for bug 24592
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
credit_type_code = 'LOST_FOUND'
WHERE
credit_type_code = 'LOST_RETURN'
+ OR
+ credit_type_code = 'LOST_RETURNED'
});
# Migrate LOST + RETURNED to LOST + FOUND
# Drop LOST_RETURNED credit type
$dbh->do(qq{
+ DELETE FROM account_credit_types WHERE code = 'LOST_RETURNED'
+ });
+
+ # Drop LOST_RETURN credit type
+ $dbh->do(qq{
DELETE FROM account_credit_types WHERE code = 'LOST_RETURN'
});