shop_code

This commit is contained in:
Myat Zin Wai Maw
2019-12-05 14:56:47 +06:30
parent ccbd3c6966
commit b0f6368248
58 changed files with 95 additions and 26 deletions

View File

@@ -5,6 +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
@@ -27,6 +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