Ignore Eventbrite totals row

This commit is contained in:
Ben Sturmfels 2025-10-09 10:38:15 +11:00
parent 38d15513be
commit dca6b10c1a
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
2 changed files with 5 additions and 1 deletions

View file

@ -25,6 +25,10 @@ class SalesImporter(_csv.CSVImporterBase):
ENTRY_SEED = {'currency': 'USD'} ENTRY_SEED = {'currency': 'USD'}
def _read_row(self, row): def _read_row(self, row):
if row['Order ID'] == 'TOTALS':
# Skip summary row
return None
# if row['Payment status'] != 'Eventbrite Completed': # if row['Payment status'] != 'Eventbrite Completed':
if row['Payment status'] == 'Free Order': if row['Payment status'] == 'Free Order':
return None return None

View file

@ -30,7 +30,7 @@ REQUIREMENTS['tests_require'] = [
setup( setup(
name='import2ledger', name='import2ledger',
description="Import different sources of financial data to Ledger", description="Import different sources of financial data to Ledger",
version='1.4.9', version='1.4.10',
author='Brett Smith', author='Brett Smith',
author_email='brettcsmith@brettcsmith.org', author_email='brettcsmith@brettcsmith.org',
license='GNU AGPLv3+', license='GNU AGPLv3+',