check req bill cntrl
This commit is contained in:
@@ -9,6 +9,7 @@ class Origami::RequestBillsController < ApplicationController
|
||||
order_id = params[:id] # order_id
|
||||
bk_order = BookingOrder.find_by_order_id(order_id)
|
||||
check_booking = Booking.find_by_booking_id(bk_order.booking_id)
|
||||
|
||||
if check_booking.sale_id.nil?
|
||||
# Create Sale if it doesn't exist
|
||||
# puts "current_login_employee"
|
||||
|
||||
Reference in New Issue
Block a user