From 46b8ae35c009cdef4c26dcfc5c21c0230968f7a5 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 10 Jul 2017 17:34:09 +0100 Subject: [PATCH 7/7] Bug 18267 Update doc for Koha::EDI Document change to _discounted_price's parameters and wrapper around new Acquisitions routine --- Koha/EDI.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Koha/EDI.pm b/Koha/EDI.pm index d1e0d452ee..448e81e45d 100644 --- a/Koha/EDI.pm +++ b/Koha/EDI.pm @@ -1212,10 +1212,13 @@ Koha::EDI =head2 _discounted_price - ecost = _discounted_price(discount, item_price) + ecost = _discounted_price(discount, item_price, discounted_price) utility subroutine to return a price calculated from the vendors discount and quoted price + The optional parameter discounted_price is passed if one occurs + in the edifact message. It short circuits the calculation and returns + the supplied value =head2 _check_for_existing_bib @@ -1232,6 +1235,14 @@ Koha::EDI Returns the Aqbudget object for the active budget given the passed budget_code or undefined if one does not exist +=head2 update_price_from_invoice + + $ord_hash_ref = update_price_from_invoice( $order, $booksellerid ) + + wrapper around C4::Acquisitions::populate_order_with_prices as it expects an order_hashref + we populate a hashref grow the Row object in order to call the routine + + =head1 AUTHOR Colin Campbell -- 2.13.3