this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix edge case with appointment booking.

+3
+3
care/emr/api/viewsets/scheduling/availability.py
··· 148 148 ) 149 149 # Generate Charge Item 150 150 schedule = booking.token_slot.availability.schedule 151 + if not schedule.charge_item_definition: 152 + return booking 151 153 last_booking = ( 152 154 TokenBooking.objects.exclude(status__in=CANCELLED_STATUS_CHOICES) 153 155 .filter( ··· 156 158 charge_item__isnull=False, 157 159 charge_item__status=ChargeItemStatusOptions.paid.value, 158 160 token_slot__start_datetime__lte=token_slot.start_datetime, 161 + charge_item__charge_item_definition=schedule.charge_item_definition, 159 162 ) 160 163 .order_by("-token_slot__start_datetime") 161 164 ).first()