update transaction

This commit is contained in:
Aung Myo
2017-11-06 09:45:44 +06:30
parent ebb2114243
commit 8f13403fab
3 changed files with 19 additions and 16 deletions

View File

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