shop code

This commit is contained in:
Myat Zin Wai Maw
2019-12-10 15:18:48 +06:30
parent c606ca73db
commit 79598c0126
115 changed files with 247 additions and 396 deletions

View File

@@ -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