Include sales with status Partial Refund in Eventbrite imports

This commit is contained in:
Rosanne DiMesio 2023-05-03 14:10:23 -05:00
parent 8b0fd52602
commit 950c7fd644

View file

@ -29,7 +29,8 @@ 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 Type'] != 'Eventbrite Completed': # if row['Order Type'] != 'Eventbrite Completed':
if row['Order Type'] == 'Free Order':
return None return None
retval = { retval = {
self.DECIMAL_FIELDS[key]: strparse.currency_decimal(row[key]) self.DECIMAL_FIELDS[key]: strparse.currency_decimal(row[key])