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>
(cherry picked from commit 53722e6c31)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Katrin Fischer 2023-05-04 15:06:45 +00:00 committed by Lucas Gass
parent a6fc73e0da
commit 642e4fd303
2 changed files with 6 additions and 0 deletions

View File

@ -468,6 +468,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