nbpy2017: Handle complimentary t-shirts.
This commit is contained in:
parent
69efec1888
commit
7bb5815b08
2 changed files with 12 additions and 4 deletions
|
@ -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 = [{
|
||||
|
|
|
@ -179,9 +179,9 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>T-Shirt - Men's/Straight Cut Size M</td>
|
||||
<td class="text-right">2</td>
|
||||
<td class="text-right">3</td>
|
||||
<td class="text-right">$30.00</td>
|
||||
<td class="text-right">$60.00</td>
|
||||
<td class="text-right">$90.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tutorials - Notify me when tutorials are open</td>
|
||||
|
@ -189,6 +189,12 @@
|
|||
<td class="text-right">$-0.00</td>
|
||||
<td class="text-right">$-0.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>T-shirts complimentary for staff and volunteers (T-Shirt - Men's/Straight Cut Size M)</td>
|
||||
<td class="text-right">1</td>
|
||||
<td class="text-right">$-30.00</td>
|
||||
<td class="text-right">$-30.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3">TOTAL</th>
|
||||
<td class="text-right">$60.00</td>
|
||||
|
|
Loading…
Reference in a new issue