shop code
This commit is contained in:
@@ -5,7 +5,7 @@ class Settings::ZonesController < ApplicationController
|
||||
# GET /settings/zones
|
||||
# GET /settings/zones.json
|
||||
def index
|
||||
@settings_zones = Zone.all
|
||||
@settings_zones = Zone.all.where("shop_code='#{@shop.shop_code}' and is_active= true")
|
||||
end
|
||||
|
||||
# GET /settings/zones/1
|
||||
@@ -28,6 +28,7 @@ class Settings::ZonesController < ApplicationController
|
||||
# POST /settings/zones.json
|
||||
def create
|
||||
@settings_zone = Zone.new(settings_zone_params)
|
||||
@settings_zone.shop_code =@shop.shop_code
|
||||
@settings_zone.created_by = current_login_employee.name
|
||||
respond_to do |format|
|
||||
if @settings_zone.save
|
||||
|
||||
Reference in New Issue
Block a user