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

@@ -2,6 +2,7 @@ class Reports::CommissionController < BaseReportController
# authorize_resource :class => false
def index
@shop = Shop.current_shop
from_date, to_date = get_date_range_from_params
commissioner = params[:commissioner].to_i
@@ -21,6 +22,7 @@ class Reports::CommissionController < BaseReportController
end
def show
@shop = Shop.current_shop
from, to = get_date_range_from_params
@sale_data = Sale.get_by_shift_sale(from,to,Sale::SALE_STATUS_COMPLETED).where("shift_sales.shop_code='#{@shop.shop_code}'")