From 948f25d15a356ca8053cfb1715498b3db97c560c 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 --- 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.11.0