Skip to content

Commit

Permalink
consider fixed price mission with end boundary in pre billing page
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfox committed Feb 21, 2025
1 parent bf9ee01 commit 203991e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions billing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,9 @@ def pre_billing(request, start_date=None, end_date=None, mine=False):
mine = False


fixedPriceMissions = Mission.objects.filter(nature="PROD", billing_mode="FIXED_PRICE",
timesheet__working_date__gte=start_date,
timesheet__working_date__lt=end_date)
fixedPriceMissions = Mission.objects.filter(nature="PROD", billing_mode="FIXED_PRICE").filter(
Q(timesheet__working_date__gte=start_date, timesheet__working_date__lt=end_date) |
Q(end_date__gte=start_date))
undefinedBillingModeMissions = Mission.objects.filter(nature="PROD", billing_mode=None,
timesheet__working_date__gte=start_date,
timesheet__working_date__lt=end_date)
Expand Down

0 comments on commit 203991e

Please sign in to comment.