This commit is contained in:
Nweni
2017-06-15 14:53:56 +06:30
parent 11b948e6c4
commit 739e7bc4dc
2 changed files with 1 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ class Api::BillController < Api::ApiController
if booking
if booking.sale_id.nil?
@sale = Sale.new
@status, @sale_id = @sale.generate_invoice_from_booking(params[:booking_id], current_login_employee.name)
@status, @sale_id = @sale.generate_invoice_from_booking(params[:booking_id], current_login_employee)
else
@status = true
end

View File

@@ -48,10 +48,8 @@ class Api::OrdersController < Api::ApiController
else
@order.new_booking = false
@order.booking_id = params[:booking_id]
puts "booking sale is null"
end
else
puts "daksdflaksj"
end