[Koha-bugs] [Bug 18267] Update price and tax fields in EDI to reflect DB changes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 27 15:52:58 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18267

--- Comment #28 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 68708
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68708&action=edit
Bug 18267 Populate new price fields in EDI Processing

New price fields have been added to aqorders with the result
that sites using EDI found prices appearing as zero in
displays as the prices were not duplicated to the
nrew fields as in manual acquisitions.

Invoicing now records values using the standard
populate_order_with_prices routine from C4::Acquisitions

However when creating an order from an edifact quote the
routine makes invalid assumptions about what data is available.
In a quote prices are always tax inclusive, and no information
is supplied on the tax rate and amount, these appear in the invoice
message on receipting. Koha::EDI therefore sets the relevant
fields directly in order creation.

To clarify the field used, we now call the price_info method rather than
the older price method.

When calculating discount, we now check if a discounted price
has been supplied. (In practice we dont see this but we are
prepared if it occurs )

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list