importers.stripe: Generate payment entries for refunded payments.

In order to be refunded, the payment had to be paid in the first place, so
we should still generate an entry for it.
This commit is contained in:
Brett Smith 2017-12-18 17:32:33 -05:00
parent 4796932cb7
commit 68a0a9625c

View file

@ -21,7 +21,7 @@ class PaymentImporter(_csv.CSVImporterBase):
DATE_FMT = '%Y-%m-%d'
def _read_row(self, row):
if row['Status'] != 'Paid':
if (row['Status'] != 'Paid') and (row['Status'] != 'Refunded'):
return None
else:
return {