Browse Source

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 <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Tomás Cohen Arazi 3 years ago
committed by Martin Renvoize
parent
commit
caf1578be6
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 4
      Koha/Acquisition/Invoice.pm

4
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
};
}

Loading…
Cancel
Save