Bug 33262: Add new field to REST API route for orders
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 4 May 2023 15:06:45 +0000 (15:06 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 15 May 2023 22:48:10 +0000 (22:48 +0000)
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 4ab67c196debf387f2053c3916f4cdac76901db3)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 53722e6c3172d0e04d5e7b8d2576a93ddeded2f0)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Acquisition/Order.pm
api/v1/swagger/definitions/order.yaml

index 214d7fe69c8ee43f676547167eb8845c2c6f5443..81dd56f70b113872c49e5b8aef14bc949be664b1 100644 (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',
index fbe380f6f9150ac820fcb02f39efd4c6c42a2c6d..5df8374b251657f336067eb236d49074eed52aa7 100644 (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