[Koha-bugs] [Bug 22435] Clarify account_offset types by converting them to clear codes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 3 16:33:41 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22435

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #122906|0                           |1
        is obsolete|                            |

--- Comment #203 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 123430
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123430&action=edit
Bug 22435: Fix _set_found_trigger

The _set_found_trigger utilised the 'Writeoff' offset type to
distinguish between the application of a writeoff and any other form of
offset application.

This patch updates the trigger to use the full link through from offset
to account credit line to get the credit type being offset.

Test plan
1/ Run t/db_dependent/Koha/Items.t and prove it fails before the patch,
but passes after applying this patch.
2/ Run t/db_dependent/Koha/Account/Offsets.t and prove it passes both
before and after applying this patch.

Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list