verfication controller

This commit is contained in:
Nweni
2019-12-03 18:22:38 +06:30
parent bb698789e4
commit 15361fe4e1
4 changed files with 18 additions and 18 deletions

View File

@@ -39,7 +39,7 @@ class Foodcourt::FoodCourtController < ApplicationController
.joins("JOIN orders ON orders.order_id=booking_orders.order_id")
.joins("JOIN order_items ON orders.order_id=order_items.order_id")
.joins("JOIN customers ON orders.customer_id=customers.customer_id")
.where("orders.source='app' and bookings.shop_code='#{@shop.shop_code}' and bookings.booking_status='assign'").uniq.length
.where("orders.source='app' and bookings.shop_code='#{Shop.current_shop.shop_code}' and bookings.booking_status='assign'").uniq.length
puts @app_order_new_count
render "foodcourt/addorders/detail"
end