Skip to content

Commit

Permalink
Update combo discount to account for rigging and power
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-antupit committed Nov 13, 2023
1 parent 9bc0c63 commit 3afc603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def discount_applied(self):
@property
def discount_value(self):
if self.discount_applied:
categories = ['Lighting', 'Sound']
categories = ['Lighting', 'Sound', 'Rigging', 'Power']
categories = [Category.objects.get(name=name) for name in categories]
discountable_total = decimal.Decimal(
self.serviceinstance_set.filter(service__category__in=categories).aggregate(Sum('service__base_cost'))[
Expand Down

0 comments on commit 3afc603

Please sign in to comment.