Pull from master

This commit is contained in:
San Wai Lwin
2018-05-25 16:22:30 +06:30
parent f906134fbf
commit 578c14ccc3
26 changed files with 536 additions and 358 deletions

View File

@@ -15,18 +15,19 @@ namespace :clear do
ShiftSale.delete_all
PaymentJournal.delete_all
Survey.delete_all
ProductCommission.delete_all
DiningFacility.update_all(status:'available')
CashierTerminal.update_all(is_currently_login: 0)
SeedGenerator.where("id > 1").update(:current => 0, :next => 0)
Receipt.delete_all
ReceiptDetail.delete_all
# Receipt.delete_all
# ReceiptDetail.delete_all
OrderReservation.delete_all
OrderReservationItem.delete_all
Delivery.delete_all
puts "Clear Data Done."
end
desc "Clear Menu"
desc "Clear-- Menu"
task :menu => :environment do