[Bug 44246] New: An EDI order response line with no text or date wipes the supplier's report on the order
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44246 Bug ID: 44246 Summary: An EDI order response line with no text or date wipes the supplier's report on the order Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: babarjunaid1122@gmail.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- process_ordrsp (Koha/EDI.pm) writes each non-cancelled line's coded text and availability date into the order's suppliers_report. When a later response for the same line has neither (the supplier acknowledges the line again), it writes an empty string, so the supplier's earlier answer ("In stock", "Available: ...") disappears from the order. Such a line also makes Koha::Edifact::Line::coded_orderline_text warn "Use of uninitialized value $table in string eq". To reproduce: process an ORDRSP whose line has FTX+LIN++IB:8B:28 (suppliers_report becomes "In stock"), then an ORDRSP for the same order line without the FTX segment: suppliers_report is now empty. Reproduced on main (c8e8025) with a new subtest in t/db_dependent/Koha/EDI.t. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44246 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212476 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212476&action=edit Bug 44246: An EDI order response with no text or date should not wipe the supplier's report Bug 44246: An EDI order response with no text or date should not wipe the supplier's report process_ordrsp writes the line's coded text and availability date into the order's suppliers_report. When a later response for the same line has neither (the supplier acknowledges the line again), it wrote an empty string, and the supplier's earlier answer ("In stock", "Available: ...") was lost from the order. Such a line now leaves suppliers_report as it is. coded_orderline_text also warned "Use of uninitialized value $table" for a line with no coded text; it now returns nothing for it. Test plan: 1. prove t/db_dependent/Koha/EDI.t Without the patch the new subtest "a line with no text and no date keeps the last report" fails, and "no warnings" fails. 2. Apply the patch: all tests pass. 3. prove t/Ediordrsp.t t/db_dependent/Koha/Edifact*: still pass. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44246 babar junaid <babarjunaid1122@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |babarjunaid1122@gmail.com |ity.org | Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44246 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@openfifth.c | |o.uk Blocks| |41852 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41852 [Bug 41852] Modernize EDI support in Koha -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44246 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |martin.renvoize@openfifth.c |y.org |o.uk -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org