update commission && report
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user