updated oqs ui
This commit is contained in:
@@ -28,15 +28,10 @@ class Oqs::HomeController < BaseOqsController
|
||||
|
||||
# update delivery status when complete click
|
||||
def update_delivery_status
|
||||
puts "WWWW" + params[:id]
|
||||
assigned_item_id = params[:id]
|
||||
assigned_item=AssignedOrderItem.find(assigned_item_id)
|
||||
assigned_item.delivery_status=true
|
||||
assigned_item.save
|
||||
# respond_to do |format|
|
||||
# format.json { render json: "updated" }
|
||||
# end
|
||||
flash[:success] = "updated!"
|
||||
assigned_item.save
|
||||
end
|
||||
|
||||
# Query for OQS with status
|
||||
@@ -49,7 +44,7 @@ class Oqs::HomeController < BaseOqsController
|
||||
left join order_items as odt ON odt.item_code = assigned_order_items.item_code
|
||||
left join customers as cus ON cus.id = od.customer_id")
|
||||
.where('assigned_order_items.delivery_status=' + status)
|
||||
.group('oqs.station_name')
|
||||
.group('assigned_order_items.id')
|
||||
.order("odt.item_name DESC")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user