diff --git a/app/controllers/transactions/sales_controller.rb b/app/controllers/transactions/sales_controller.rb index 8c33e1a3..9aca7d87 100755 --- a/app/controllers/transactions/sales_controller.rb +++ b/app/controllers/transactions/sales_controller.rb @@ -7,8 +7,8 @@ class Transactions::SalesController < ApplicationController def index receipt_no = params[:receipt_no] - from = params[:from] - to = params[:to] + from = params[:from] + to = params[:to] if receipt_no.nil? && from.nil? && to.nil? @sales = Sale.where("NOT sale_status = 'void' " ).order("sale_id desc").limit(500) diff --git a/app/views/transactions/orders/index.html.erb b/app/views/transactions/orders/index.html.erb index 0633f8e8..f5d59cd4 100755 --- a/app/views/transactions/orders/index.html.erb +++ b/app/views/transactions/orders/index.html.erb @@ -28,11 +28,11 @@ -->
- +
- +
@@ -83,6 +83,14 @@
+ +