Bug 38262

Summary: Add additional fields to Vendors
Product: Koha Reporter: Matt Blenkinsop <matt.blenkinsop>
Component: AcquisitionsAssignee: Matt Blenkinsop <matt.blenkinsop>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: caroline.cyr-la-rose, david, katrin.fischer, mathsabypro
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
This enhancement enables adding additional fields to vendors (Koha administration > Additional parameters > Additional fields > Acquisitions > Vendors (aqbooksellers:vendor)).
Version(s) released in:
Circulation function:
Bug Depends on: 35287, 38010, 38446, 38662    
Bug Blocks: 38290    
Attachments: Bug 38262: Update API specs
Bug 38262: Update object classes
Bug 38262: Update UI
Bug 38262: Update API specs
Bug 38262: Update object classes
Bug 38262: Update UI
Bug 38262: Update API specs
Bug 38262: Update object classes
Bug 38262: Update UI
Bug 38262: Update API specs
Bug 38262: Update object classes
Bug 38262: Update UI
Bug 38262: Update API specs
Bug 38262: Update object classes
Bug 38262: Update UI
Bug 38262: Update API specs
Bug 38262: Update object classes
Bug 38262: Update UI

Description Matt Blenkinsop 2024-10-24 15:25:43 UTC
We should add additional fields capability to Vendors following the Vue migration
Comment 1 Matt Blenkinsop 2024-12-04 10:18:10 UTC
Created attachment 175147 [details] [review]
Bug 38262: Update API specs
Comment 2 Matt Blenkinsop 2024-12-04 10:18:12 UTC
Created attachment 175148 [details] [review]
Bug 38262: Update object classes
Comment 3 Matt Blenkinsop 2024-12-04 10:18:14 UTC
Created attachment 175149 [details] [review]
Bug 38262: Update UI
Comment 4 Matt Blenkinsop 2024-12-19 12:25:29 UTC
Created attachment 175712 [details] [review]
Bug 38262: Update API specs
Comment 5 Matt Blenkinsop 2024-12-19 12:25:32 UTC
Created attachment 175713 [details] [review]
Bug 38262: Update object classes
Comment 6 Matt Blenkinsop 2024-12-19 12:25:34 UTC
Created attachment 175714 [details] [review]
Bug 38262: Update UI
Comment 7 Mathieu Saby 2025-02-10 10:21:07 UTC
Could you add a test plan please?
Comment 8 Caroline Cyr La Rose 2025-04-03 13:37:49 UTC
Patch doesn't apply

Error message says 

Patch failed at 0001 Bug 38262: Update API specs
Comment 9 Matt Blenkinsop 2025-04-03 13:59:38 UTC
Created attachment 180558 [details] [review]
Bug 38262: Update API specs
Comment 10 Matt Blenkinsop 2025-04-03 13:59:43 UTC
Created attachment 180559 [details] [review]
Bug 38262: Update object classes
Comment 11 Matt Blenkinsop 2025-04-03 13:59:50 UTC
Created attachment 180560 [details] [review]
Bug 38262: Update UI
Comment 12 Matt Blenkinsop 2025-04-03 14:01:39 UTC
Test plan to follow, updating the bug dependencies first
Comment 13 Matt Blenkinsop 2025-05-19 13:23:37 UTC
Created attachment 182602 [details] [review]
Bug 38262: Update API specs
Comment 14 Matt Blenkinsop 2025-05-19 13:23:40 UTC
Created attachment 182603 [details] [review]
Bug 38262: Update object classes
Comment 15 Matt Blenkinsop 2025-05-19 13:23:42 UTC
Created attachment 182604 [details] [review]
Bug 38262: Update UI
Comment 16 David Nind 2025-06-06 02:48:15 UTC
Created attachment 183026 [details] [review]
Bug 38262: Update API specs

Signed-off-by: David Nind <david@davidnind.com>
Comment 17 David Nind 2025-06-06 02:48:18 UTC
Created attachment 183027 [details] [review]
Bug 38262: Update object classes

Signed-off-by: David Nind <david@davidnind.com>
Comment 18 David Nind 2025-06-06 02:48:22 UTC
Created attachment 183028 [details] [review]
Bug 38262: Update UI

Signed-off-by: David Nind <david@davidnind.com>
Comment 19 David Nind 2025-06-06 02:50:18 UTC
Created attachment 183029 [details] [review]
Bug 38262: Update API specs

Signed-off-by: David Nind <david@davidnind.com>
Comment 20 David Nind 2025-06-06 02:50:22 UTC
Created attachment 183030 [details] [review]
Bug 38262: Update object classes

Signed-off-by: David Nind <david@davidnind.com>
Comment 21 David Nind 2025-06-06 02:50:26 UTC
Created attachment 183031 [details] [review]
Bug 38262: Update UI

Signed-off-by: David Nind <david@davidnind.com>
Comment 22 David Nind 2025-06-06 02:53:48 UTC
Testing notes (using KTD):
1. Apply the patch
2. Rebuild everything: yarn build
3. Restart everything: restart_all
4. Go to Koha administration > Additional parameters > Additional fields.
5. Under the additional fields for acquisitions, note that there is a new option: Vendors (aqbooksellers:vendor).
6. Add two new fields for vendors:
   - a text field
   - a field linked to an authorized value category, for example YES_NO
7. Edit an existing vendor (My Vendor) to add values for the additional fields you created.
8. Note that these are shown in a new section on the vendor details page, "Additional fields".
9. Add a new vendor, and add a value for only one of the additional fields. 
10. Note that on the vendor details page, only additional fields that have a value are shown.
Comment 23 Katrin Fischer 2025-06-10 13:29:33 UTC
*** Bug 28218 has been marked as a duplicate of this bug. ***