diff --git a/import2ledger/importers/nbpy2017.py b/import2ledger/importers/nbpy2017.py index 71686f4..f861d2f 100644 --- a/import2ledger/importers/nbpy2017.py +++ b/import2ledger/importers/nbpy2017.py @@ -89,10 +89,12 @@ class Invoice2017: if description.startswith('Ticket - '): if total > 0: self.tickets_sold += int(qty) - elif description.startswith('T-Shirt - '): - self.shirts_sold += int(qty) elif description.startswith('Early Bird ('): self.ticket_rate = self.DISCOUNT_TICKET_RBI + elif description.startswith('T-Shirt - '): + self.shirts_sold += int(qty) + elif description.startswith('T-shirts complimentary '): + self.shirts_sold -= int(qty) def _read_invoice_activity(self, table, first_row_text, rows_text): self.actions = [{ diff --git a/tests/data/nbpy2017c.html b/tests/data/nbpy2017c.html index 1c9446b..4c54102 100644 --- a/tests/data/nbpy2017c.html +++ b/tests/data/nbpy2017c.html @@ -179,9 +179,9 @@