update move table only order

This commit is contained in:
Aung Myo
2018-06-07 14:27:11 +06:30
parent cdc736778b
commit c3f7191f17
2 changed files with 76 additions and 54 deletions

View File

@@ -34,25 +34,25 @@ class Origami::MoveroomController < BaseOrigamiController
end
end
@status_order = 'order'
else
sale = Sale.find(booking.sale_id)
if sale.sale_status != "completed" && sale.sale_status != "waste" && sale.sale_status != "spoile"
@sale_array.push(sale)
if @status_order == 'order'
@status_order = 'sale'
end
@booking= booking
@date = sale.created_at
@status_sale = 'sale'
@obj_sale = sale
@customer = sale.customer
accounts = @customer.tax_profiles
@account_arr =[]
accounts.each do |acc|
account = TaxProfile.find(acc)
@account_arr.push(account)
end
end
# else
# sale = Sale.find(booking.sale_id)
# if sale.sale_status != "completed" && sale.sale_status != "waste" && sale.sale_status != "spoile"
# @sale_array.push(sale)
# if @status_order == 'order'
# @status_order = 'sale'
# end
# @booking= booking
# @date = sale.created_at
# @status_sale = 'sale'
# @obj_sale = sale
# @customer = sale.customer
# accounts = @customer.tax_profiles
# @account_arr =[]
# accounts.each do |acc|
# account = TaxProfile.find(acc)
# @account_arr.push(account)
# end
# end
end
end
end