Bug 38411 - When adding multiple items on receive, mandatory fields are not checked
Summary: When adding multiple items on receive, mandatory fields are not checked
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low major
Assignee: Adolfo Rodríguez Taboada
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-08 15:20 UTC by Adolfo Rodríguez Taboada
Modified: 2024-11-11 19:28 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 38411: Check mandatory item fields when creating several items ordering or receiving. (2.15 KB, patch)
2024-11-08 15:24 UTC, Adolfo Rodríguez Taboada
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Adolfo Rodríguez Taboada 2024-11-08 15:20:14 UTC
This was fixed Bug #34109 for the case where only one item is added (function addItem)
When adding multiple items, the function addMulti is used and it doesn't check mandatory fields.
Comment 1 Adolfo Rodríguez Taboada 2024-11-08 15:24:15 UTC
Created attachment 174274 [details] [review]
Bug 38411: Check mandatory item fields when creating several items ordering or receiving.

This patch adds a check of mandatory item fields when adding several items

Test plan:
1 We need mandatory subfields for items in the ACQ framework and an open basket configured to create items on order or a closed basket configured to create items on receiving an order
2 In both cases, in the form to create items check that there are mandatory fields.
3 Click the Add multiple items button, write a number and then add.
4 Check that the items have been added.
5 Apply patch, restart services
6 Repeat step 3 Now it doesn't add the items and shows an alert regarding the empty mandatory fields