check seedd generator for commission issue

This commit is contained in:
phyusin
2018-07-16 10:17:02 +06:30
parent b181d70a9e
commit 416e7c19f3

View File

@@ -19,7 +19,7 @@ namespace :clear do
InDuty.delete_all
DiningFacility.update_all(status:'available')
CashierTerminal.update_all(is_currently_login: 0)
SeedGenerator.where("id > 1").update(:current => 0, :next => 1)
SeedGenerator.where("model !='Customer' AND model != 'Commission'").update(:current => 0, :next => 1)
# Receipt.delete_all
# ReceiptDetail.delete_all
OrderReservation.delete_all