From bd03f96ee416ba467d8afdad597852bad1692718 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 10 Jul 2017 17:34:09 +0100 Subject: [PATCH] Bug 18267 Update doc for Koha::EDI Document change to _discounted_price's parameters and wrapper around new Acquisitions routine Signed-off-by: Kyle M Hall --- Koha/EDI.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Koha/EDI.pm b/Koha/EDI.pm index 68e8538..abc7968 100644 --- a/Koha/EDI.pm +++ b/Koha/EDI.pm @@ -1214,10 +1214,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 @@ -1234,6 +1237,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.10.2