Bug 41779

Summary: Late orders: disable batch controls if no checkboxes are checked
Product: Koha Reporter: Owen Leonard <oleonard>
Component: AcquisitionsAssignee: Owen Leonard <oleonard>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: Sponsored Comma delimited list of Sponsors: Athens County Public Libraries
Crowdfunding goal: 0 Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41779: Late orders: disable batch controls if no checkboxes are checked
Bug 41779: Late orders: disable batch controls if no checkboxes are checked

Description Owen Leonard 2026-02-05 18:55:20 UTC
On the late orders page, the "Export" and "Claim" controls should be disabled when there are no orders have their checkboxes checked.
Comment 1 Owen Leonard 2026-02-05 19:11:30 UTC
Created attachment 192542 [details] [review]
Bug 41779: Late orders: disable batch controls if no checkboxes are checked

This patch adds JavaScript which changes the enabled or disabled state
of the batch controls on the late orders page: "Export as CSV" and
"Claim order."

To test you must have more than one late order.

- Apply the patch and go to Acquisitions -> Late orders.
- At the bottom of the table of late orders you should see the "Export
  as CSV" and "Claim order" buttons and they should be disabled.
- Try checking and unchecking boxes, and confirm that the controls are
  enabled and disabled as they should be.
- Filter your list of late orders by vendor using the filter form in the
  sidebar.
- Test that the "Check all" and "Uncheck all" controls above the table.
  The batch controls should be enabled and disabled correctly.

Sponsored-by: Athens County Public Libraries
Comment 2 David Nind 2026-02-06 07:11:29 UTC
Created attachment 192583 [details] [review]
Bug 41779: Late orders: disable batch controls if no checkboxes are checked

This patch adds JavaScript which changes the enabled or disabled state
of the batch controls on the late orders page: "Export as CSV" and
"Claim order."

To test you must have more than one late order.

- Apply the patch and go to Acquisitions -> Late orders.
- At the bottom of the table of late orders you should see the "Export
  as CSV" and "Claim order" buttons and they should be disabled.
- Try checking and unchecking boxes, and confirm that the controls are
  enabled and disabled as they should be.
- Filter your list of late orders by vendor using the filter form in the
  sidebar.
- Test that the "Check all" and "Uncheck all" controls above the table.
  The batch controls should be enabled and disabled correctly.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>