Koha-clms/t/cypress/integration/Circulation
Martin Renvoize 8b35dfcc9d
Bug 23415: Add debt override support to circulation checkout page
This patch implements fine override functionality for the checkouts
table on the circulation page (circ/circulation.pl), completing the
debt override feature for all renewal workflows.

Changes:
- Added override_debt checkbox to checkouts-table.inc when
  AllowFineOverrideRenewing preference is enabled
- Updated /svc/renew to accept and process override_debt parameter,
  matching the pattern used for override_limit
- Enhanced circulation-api-client.js to pass override_debt parameter
  through the renewal API call
- Implemented specific CSS classes for renewal error types
  (renewals-allowed-too_many, renewals-allowed-too_much_owing, etc.)
  to enable selective checkbox control
- Modified override checkbox handlers to selectively enable only
  relevant renewal checkboxes based on the specific blocking error:
  * override_limit enables checkboxes for 'too_many' and 'on_reserve'
  * override_debt enables checkboxes for 'too_much_owing' and
    'auto_too_much_owing'
- Added AllowFineOverrideRenewing JavaScript variable to circulation.tt

This provides clear visual feedback to staff about which renewals will
be affected by each override option, improving usability and reducing
confusion when multiple items have different blocking reasons.

Sponsored-by: OpenFifth <https://openfifth.co.uk/>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
2026-03-22 23:27:26 +01:00
..
FineNoRenewals_spec.ts Bug 23415: Add debt override support to circulation checkout page 2026-03-22 23:27:26 +01:00
bookingsModalBasic_spec.ts Bug 37707: (follow-up) Add comprehensive Cypress tests for bookings modal 2026-02-10 08:51:07 -07:00
bookingsModalDatePicker_spec.ts Bug 37707: (QA follow-up) Fix incorrect bold date expectations in Cypress test 2026-02-10 08:51:08 -07:00
bookingsModalTimezone_spec.ts Bug 37707: (follow-up) Add comprehensive Cypress tests for bookings modal 2026-02-10 08:51:07 -07:00