Commit Graph
15 Commits
Author SHA1 Message Date
Raphael MichelandGitHub 177a7d07fc Update license header (#5540) 2025-10-10 15:32:46 +02:00
Kian CrossandGitHub 5d4b218aa6 Banktransfer: Handle trailing commas in headers for Lloyds Bank CSV files (#4782)
Lloyds Bank (UK) CSV files include a trailing comma in the header row
but not in the data rows, causing the `csvimport.parse` function to
skip the data rows. This occurs because the header length exceeds the
row length, making them unequal to `hint.cols`.

This commit adjusts the length check to allow a range of acceptable row
lengths, from the index of the last non-empty column in the header to
`hint.cols`. This ensures compatibility with headers containing one or
more trailing commas without affecting rows with correctly labelled columns.

The solution avoids breaking changes by leaving underlying data structures
untouched. Alternative approaches, such as dropping trailing commas before
parsing or removing empty elements after parsing, were avoided due to
potential risks. Specifically, trailing columns might contain data that
banks provide but fail to label in the header row.
2025-02-05 16:56:28 +01:00
Raphael MichelandGitHub a93287207b pretix Community Edition moves to AGPLv3-based license (#2023) 2021-04-12 10:33:47 +02:00
a62c7939ae Improvements for bank transfer importing (#1762)
Co-authored-by: Raphael Michel <michel@rami.io>
Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
2020-10-22 11:00:36 +02:00
Raphael Michel 3c87272fdc Bank transfer import: Fix crash when no date column is selected 2019-12-04 10:29:26 +01:00
Raphael Michel 3a81706aeb Fix KeyError in bank import 2019-09-17 16:48:41 +02:00
Raphael Michel 0f58e1c396 CSV import: Do not skip rows without a reference 2019-04-08 17:55:28 +02:00
Raphael Michel 13ee691133 Banktransfer: CSV import of Mac CSV files 2019-03-11 14:30:43 +01:00
Raphael Michel b113028a5f Fix exception in CSV import 2018-05-28 16:17:32 +02:00
Raphael Michel b2dfd8ab11 Bankimport: Force re-annotation for badly parsed files 2017-05-30 18:43:53 +02:00
Raphael Michel a1824595b1 Bankimport: Compatibility with Postbank CSV files 2016-08-14 19:52:00 +02:00
Raphael Michel fea6e0a957 Fixed a bug in banktransfer import hinting 2016-04-04 10:37:31 +02:00
Raphael Michel dcf73fc782 Fixed a bug in the banktransfer CSV import 2015-07-14 19:55:14 +02:00
Raphael Michel 2f7ab1957a Add some tests for bank CSV import 2015-04-12 20:33:45 +02:00
Raphael Michel 9ec25d708b Allow import bank data from CSV files 2015-03-21 22:03:39 +01:00