]> git.koha-community.org Git - koha.git/commit
Bug 37265: Consideration of UniqueItemFields setting when receiving items in an order main
authorMichał Dudzik <michaldudzik@kohawbibliotece.pl>
Mon, 8 Jul 2024 15:23:45 +0000 (17:23 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 2 Oct 2024 09:50:41 +0000 (10:50 +0100)
commit1b923e946ae9384945967b4f89ea595570f84a90
treec107ee46679c47d6b93c6f5042655ef7a45a4f8d
parent1b377066798a611e317191a48787318cf9dc10ad
Bug 37265: Consideration of UniqueItemFields setting when receiving items in an order

When using the Koha acquisition module to receive items (basket receiving
an order), Koha does not consideration of UniqueItemFields setting.
The problem is that you can accidentally attach 3 items to an order with the same values.

Test plan:
1. Set preference UniqueItemFields: Public note (itemnotes)
2. Go to the acquisition module.
3. Create a basket with the option for 'Create items when:' set to receiving an order.
4. Add an order to the basket, for example: From a new (empty) record with the Quantity set to 3 or more.
5. Close the basket.
6. Receive the order.
7. Add a public note: TEST, and receive the first item (Add item).
8. You will see that the next item has the same public note.
9. Apply this patch and repeat step 7 - the public note is not used for the next note.

Sponsored-by: kohawbibliotece.pl
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
acqui/orderreceive.pl