update commission && report

This commit is contained in:
Aung Myo
2018-05-24 14:03:49 +06:30
parent b4d421fdcf
commit 6d6d90050f
6 changed files with 70 additions and 39 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