Bug 33262: Add new field to REST API route for orders

Without this patch the API driven list of pending orders
on the order receive page was broken.

With the patch, all should be well now.

prove -v t/db_dependent/api/v1/acquisitions_orders.t

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4ab67c196d)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Katrin Fischer 2023-05-04 15:06:45 +00:00 committed by Martin Renvoize
parent f79ae8283d
commit 53722e6c31
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 6 additions and 0 deletions

View File

@ -602,6 +602,7 @@ sub to_api_mapping {
return {
basketno => 'basket_id',
biblionumber => 'biblio_id',
deleted_biblionumber => 'deleted_biblio_id',
budget_id => 'fund_id',
budgetdate => undef, # unused
cancellationreason => 'cancellation_reason',

View File

@ -9,6 +9,11 @@ properties:
- integer
- "null"
description: Identifier for the linked bibliographic record
deleted_biblio_id:
type:
- integer
- "null"
description: Identifier for the linked deleted bibliographic record
created_by:
type:
- integer