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::AccountsController < ApplicationController
# GET /settings/accounts
# GET /settings/accounts.json
def index
@shop = Shop.current_shop
@settings_accounts = Account.all.where("shop_code='#{@shop.shop_code}'")
end
@@ -25,6 +26,7 @@ class Settings::AccountsController < ApplicationController
# POST /settings/accounts
# POST /settings/accounts.json
def create
@shop = Shop.current_shop
@settings_account = Account.new(account_params)
@settings_account.shop_code = @shop.shop_code
respond_to do |format|