This commit is contained in:
Nweni
2017-06-09 13:52:36 +06:30
parent 8b99f4844e
commit 82de95ca22
7 changed files with 27 additions and 31 deletions

View File

@@ -16,7 +16,6 @@ class Sale < ApplicationRecord
scope :open_invoices, -> { where("sale_status = 'new' and receipt_date BETWEEN '#{DateTime.now.utc.end_of_day}' AND '#{DateTime.now.utc.beginning_of_day}'") }
def generate_invoice_from_booking(booking_id, requested_by)
puts "get invoice from booking"
booking = Booking.find(booking_id)
status = false
Rails.logger.debug "Booking -> " + booking.id.to_s