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

            Bug ID: 42788
           Summary: EDI ORDRSP: Fund encumbrance not released when order
                    line cancelled by supplier
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Acquisitions
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

When an EDI ORDRSP message cancels an order line, Koha updates the order status
to 'cancelled' but does not release the fund encumbrance. The budget remains
committed to the cancelled order indefinitely, preventing those funds from
being
used for replacement orders.

The processing logic is in Koha/EDI.pm, process_ordrsp() (~line 199-248).
Manual cancellation via the acquisitions UI does release the encumbrance, but
the EDI code path does not.

This patch should release the fund encumbrance when an order line is cancelled
via EDI ORDRSP, ideally guarded by a system preference so libraries can choose
the behaviour that suits their workflow.

Test plan:
1. Place an order against a fund with a known balance; note the encumbered
amount.
2. Receive an EDI ORDRSP cancellation for that order line and run edi_cron.pl.
3. Confirm the order line is marked cancelled.
4. Confirm the fund encumbrance has been released and the available balance
restored.
5. Test with the system preference disabled to confirm encumbrance is retained.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to