update process payment for current user

This commit is contained in:
Aung Myo
2018-08-07 16:27:32 +06:30
parent 76e626a0d9
commit 0e7db08bfc
16 changed files with 27 additions and 27 deletions

View File

@@ -537,7 +537,7 @@ class Origami::PaymentsController < BaseOrigamiController
saleObj.update_attributes(grand_total: 0, rounding_adjustment: 0, amount_received: 0, amount_changed: 0)
sale_payment = SalePayment.new
sale_payment.process_payment(saleObj, current_user.name, cash, "foc" ,remark)
sale_payment.process_payment(saleObj, current_user, cash, "foc" ,remark)
bookings = Booking.where("sale_id='#{sale_id}'")
if bookings[0].dining_facility_id.to_i > 0