[Bug 41627] New: Add Koha::CSV::Acquisitions for acquisition exports
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41627 Bug ID: 41627 Summary: Add Koha::CSV::Acquisitions for acquisition exports Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: tomascohen@gmail.com QA Contact: testopia@bugs.koha-community.org Depends on: 41619 Blocks: 41621 This bug adds Koha::CSV::Acquisitions to standardize CSV generation for acquisition exports. Files to update: - C4/Acquisition.pm - admin/aqplan.pl Benefits: - Consistent CSV formatting - Proper quote handling - Testable code Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41619 [Bug 41619] Add `Koha::CSV` https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41621 [Bug 41621] Use Koha::CSV everywhere [UMBRELLA] -- 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=41627 Bug 41627 depends on bug 41619, which changed state. Bug 41619 Summary: Add `Koha::CSV` https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41619 What |Removed |Added ---------------------------------------------------------------------------- Status|Needs documenting |RESOLVED Resolution|--- |FIXED -- 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=41627 Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Patch complexity|--- |Trivial patch -- 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=41627 --- Comment #1 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 203489 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203489&action=edit Bug 41627: Use Koha::CSV for acquisition CSV exports This patch replaces direct Text::CSV_XS usage with Koha::CSV in: - C4/Acquisition.pm (GetBasketAsCSV with CSV profile) - admin/aqplan.pl (budget planning export) Both use the low-level API (combine/string) since columns are dynamic (determined by CSV profiles or budget structure at runtime). The sep_char from the CSV profile is passed through to Koha::CSV, overriding the system preference as intended. Benefits: - formula => empty enforced (prevents formula injection) - binary => 1 always set (UTF-8 safe) - Consistent with other CSV exports - Removes direct Text::CSV_XS dependency Test plan: 1. Apply patches (depends on bug 41620) 2. Create a basket with orders 3. Export basket as CSV (with and without a CSV profile) => SUCCESS: CSV generated correctly in both cases 4. Go to Administration > Budget planning > Export as CSV => SUCCESS: CSV exported with correct delimiter 5. Sign off :-D -- 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=41627 Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Add Koha::CSV::Acquisitions |Use Koha::CSV for |for acquisition exports |acquisition exports CC| |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org