Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jus25 committed Jun 13, 2024
1 parent cbd5369 commit b4379a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Restaurant/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def generate_order_pdf(request):
response['Content-Disposition'] = 'attachment; filename="factura.pdf"'
return response


def create_order_pdf_bytes(reservation):
items_amounts = []
if reservation.order_num:
Expand Down Expand Up @@ -273,6 +274,7 @@ def create_order_pdf_bytes(reservation):
c.save()
return buffer


def view_orders_without_reservation(request):
if request.user.has_perm('waiter'):
orders_with_reservation = RestaurantReservation.objects.exclude(order_num_id=None).values_list('order_num_id',
Expand Down

0 comments on commit b4379a8

Please sign in to comment.