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

@@ -28,6 +28,7 @@ class Settings::PromotionsController < ApplicationController
# POST /promotions
# POST /promotions.json
def create
@shop = Shop.current_shop
@promotion = Promotion.new(promotion_params)
@promotion.created_by = current_login_employee.id
@promotion.shop_code = @shop.shop_code