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