]> git.koha-community.org Git - koha.git/commit
Bug 22421: (follow-up) Use checkout accessor to get correct issue_id
authorEmily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Thu, 24 Oct 2024 15:37:56 +0000 (11:37 -0400)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 8 Nov 2024 11:42:08 +0000 (12:42 +0100)
commitc55f3e69a3afb1906bd561e1dbda558a726ec862
treedf7666f105aaa7c711ed2ad3da3173a411619442
parente35ab15741acb09dfd2e30631549cc05fcb8952a
Bug 22421: (follow-up) Use checkout accessor to get correct issue_id

In some cases, we may want to update an AccountLine that is linked to a
checkout without knowing whether it is a current or old checkout. In
these cases, use the AccountLines ->checkout accessor to ensure we get
the issue_id correctly, regardless of whether it is a current issue or
and old_issue.

This also applies when generating a new AccountLine based on an existing
AccountLine (for example, adding a credit to refund a previously charged
fine)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/Overdues.pm
Koha/Item.pm