Bug 17536 - Remove Duplication of receipting code in EDI
Summary: Remove Duplication of receipting code in EDI
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Colin Campbell
QA Contact: Testopia
Depends on: 7736
  Show dependency treegraph
Reported: 2016-11-02 10:22 UTC by Colin Campbell
Modified: 2016-12-14 14:16 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Who signed the patch off:
Text to go in the release notes:
Version(s) released in:

Proposed patch (8.39 KB, patch)
2016-11-02 10:35 UTC, Colin Campbell
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Campbell 2016-11-02 10:22:22 UTC
When the Current Koha/EDI.pm was written the api to Acquisitions::ModReceiveOrder was unstable as a result the process was duplicated in Koha::EDI as the interface has stabilised EDI should revert to using the Acquisitions interface and remove the duplicate code. This should guard against bugs from incompatibilities and allow it to take advantage of enhancements in C4::acquisitions (e.g. new handling of Standing Orders)
Comment 1 Colin Campbell 2016-11-02 10:35:34 UTC
Created attachment 57071 [details] [review]
Proposed patch

This patch removes the code which duplicated functionality from C4::Acquisitions and instead calls ModReceiveOrder. Removes potential divergencies from the two paths. Koha::EDI now only required to load data provided by the GIR segment in the invoice.

This removes some anomalies which caused partial receipts to sometimes skip adding a barcode to some items (if supplier applies barcodes)
Comment 2 Colin Campbell 2016-11-15 12:45:40 UTC
Looking at a small change to this patch to eliminate an unnecssary warning