Bug 41732 - Default order quantity should be 1 unless items are created on ordering
Summary: Default order quantity should be 1 unless items are created on ordering
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-29 12:59 UTC by Slava Shishkin
Modified: 2026-02-04 22:54 UTC (History)
3 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41732: Default order quantity to 1 outside item-at-ordering (2.07 KB, patch)
2026-01-29 13:39 UTC, Slava Shishkin
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Slava Shishkin 2026-01-29 12:59:29 UTC
This issue was raised by our local librarians who create a large number of acquisition orders, most of which are for a single copy. With the current behaviour, the quantity field defaults to 0, which means that every new order requires an extra click and a manual edit of the quantity field; otherwise, saving triggers a validation popup.

Since the field is already clearly marked as required and visually highlighted, the risk of accidentally overlooking it is quite low.

We would like to hear how others see this in practice. Does the current default feel helpful in your workflows, or would a default of 1 make more sense in everyday use?
Comment 1 Slava Shishkin 2026-01-29 13:39:07 UTC
Created attachment 192146 [details] [review]
Bug 41732: Default order quantity to 1 outside item-at-ordering

Test plan:
1. In system preferences, set AcqCreateItem to cataloging the record or receiving an order.
2. Create a new basket with Create items when set to Use default (receiving an order).
3. In the basket, click + Add to basket and select an existing bibliographic record.
4. From the selected bibliographic record, click Add order.
5. On the order page, check Accounting details → Quantity.
	• Notice that the quantity defaults to 0 and the field is editable.

After applying the patch
6. Repeat steps 1–4.
7. On the order page, check Accounting details → Quantity.
	• Notice that the quantity defaults to 1 and the field is editable.

Item creation at ordering
8. In system preferences, set AcqCreateItem to placing an order.
9. Create a new order.
10. On the order page, check Accounting details → Quantity.
	• Notice that the quantity defaults to 0 and the field is not editable.
Comment 2 Slava Shishkin 2026-01-29 13:45:01 UTC
We’ve applied this patch locally for internal use.
The goal is to make the behavior concrete and open it up for discussion.
Comment 3 Angela Berrett 2026-01-30 20:05:43 UTC
We do a lot of one-copy purchasing as well and would love to see this. Thanks for the suggestion!