Bug 27045: Fix other exports using CSV profiles
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Nov 2020 14:33:14 +0000 (15:33 +0100)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Fri, 26 Aug 2022 13:54:14 +0000 (15:54 +0200)
commitcdfecb6fb771c872b6ebb528ef2e99b9c69283b7
tree90e8f0261f5a1f255dda90c5af74a2c010e9f58d
parentbecbc5bec1bece7f5dbf9089c7e1bd593e9d850c
Bug 27045: Fix other exports using CSV profiles

This patch corrects the export of the 2 other reports
using CSV profiles:

* Late issues (serials)
* Basket (acquisitions)

To test:
1) Late issues
* Update the late issues sample report to use tab as separator
* Create a subscription
* Go to serial collection and 'generate next' to get some late issues
* Go to Claims
* Export the late issues and verify format is correct
* Verify exported file has tabs

2) Basket summary
* Create an order with several order lines
* Create an SQL type CSV profile for basket export using tab as separator
  Example: aqorders.quantity|aqordres.listprice|Title=biblio.title
* Export the basket using your configured CSV profile
* Verify exported file has tabs

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 7cd84171ab57a35138fa5c585d2ed6de442e453c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 9af01ea2e3c6735420431cd41a97e29a28167165)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
C4/Acquisition.pm
serials/lateissues-export.pl