From 0f6986a4eddfdf4730a1cd70e2bffb6c37cf6aac Mon Sep 17 00:00:00 2001 From: phyusin Date: Thu, 23 Aug 2018 14:32:41 +0630 Subject: [PATCH] add order source --- app/controllers/origami/split_bill_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/origami/split_bill_controller.rb b/app/controllers/origami/split_bill_controller.rb index c7311fd6..729a3f15 100755 --- a/app/controllers/origami/split_bill_controller.rb +++ b/app/controllers/origami/split_bill_controller.rb @@ -120,7 +120,7 @@ class Origami::SplitBillController < BaseOrigamiController if booking if booking.sale_id.nil? sale = Sale.new - status, sale_id = sale.generate_invoice_from_booking(params[:booking_id], current_user, current_user, cashier_type) + status, sale_id = sale.generate_invoice_from_booking(params[:booking_id], current_user, current_user, cashier_type, "cashier") sale_data = Sale.find_by_sale_id(sale_id) else status = true