diff --git a/magstock/receipt_items.py b/magstock/receipt_items.py index 9ddad10..a33bea8 100644 --- a/magstock/receipt_items.py +++ b/magstock/receipt_items.py @@ -14,13 +14,13 @@ @cost_calculation.Attendee def brunch_tickets_cost(attendee): if attendee.brunch_tickets: - return ("{} Brunch Ticket(s)".format(attendee.brunch_tickets), c.FOOD_PRICE * attendee.brunch_tickets * 100) + return ("{} Brunch Ticket(s)".format(attendee.brunch_tickets), c.FOOD_PRICE * attendee.brunch_tickets * 100, 'brunch_tickets') @cost_calculation.Attendee def dinner_tickets_cost(attendee): if attendee.dinner_tickets: - return ("{} Dinner Ticket(s)".format(attendee.dinner_tickets), c.FOOD_PRICE * attendee.dinner_tickets * 100) + return ("{} Dinner Ticket(s)".format(attendee.dinner_tickets), c.FOOD_PRICE * attendee.dinner_tickets * 100, 'dinner_tickets') @cost_calculation.Attendee @@ -30,5 +30,5 @@ def camping_type_cost(attendee): if attendee.camping_type == c.CABIN: if not attendee.cabin_type: return - return (attendee.cabin_type_label, int(c.CABIN_TYPE_PRICES[attendee.cabin_type]) * 100) - return (attendee.camping_type_label, int(c.CAMPING_TYPE_PRICES[attendee.camping_type]) * 100) \ No newline at end of file + return (attendee.cabin_type_label, int(c.CABIN_TYPE_PRICES[attendee.cabin_type]) * 100, 'cabin_type') + return (attendee.camping_type_label, int(c.CAMPING_TYPE_PRICES[attendee.camping_type]) * 100, 'camping_type')