From caf1578be6ff8b0a85be468ef17a41cbe1876418 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 20 Jan 2020 11:29:11 -0300 Subject: [PATCH] Bug 24462: Adapt mapping to voted RFC (Invoices) This trivial patch changes the attribute names for API reprensentation of Koha::Acquisition::Invoice objects. To test: 1. Open https://wiki.koha-community.org/wiki/Acquisitions_invoices_endpoint_RFC 2. Check the mappings are correct => SUCCESS: The patch makes the right changes to the mappings 3. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- Koha/Acquisition/Invoice.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Acquisition/Invoice.pm b/Koha/Acquisition/Invoice.pm index 111f2644af..c1505be4c9 100644 --- a/Koha/Acquisition/Invoice.pm +++ b/Koha/Acquisition/Invoice.pm @@ -64,9 +64,9 @@ sub to_api_mapping { booksellerid => 'vendor_id', shipmentdate => 'shipping_date', billingdate => 'invoice_date', - closedate => 'close_date', + closedate => 'closed_date', shipmentcost => 'shipping_cost', - shipmentcost_budgetid => 'shipping_cost_budget_id', + shipmentcost_budgetid => 'shipping_fund_id', message_id => undef }; } -- 2.39.5