credit payment function
This commit is contained in:
@@ -3,7 +3,12 @@ class Origami::OthersPaymentsController < BaseOrigamiController
|
||||
@membership_rebate_balance = 0
|
||||
@sale_id = params[:sale_id]
|
||||
@cashier_type = params[:type]
|
||||
@payment_method_setting = PaymentMethodSetting.all
|
||||
path = request.fullpath
|
||||
if path.include? ("credit_payment")
|
||||
@payment_method_setting = PaymentMethodSetting.where("LOWER(payment_method) in ('mpu','visa','master','jcb','unionpay','alipay') and is_active='1'")
|
||||
else
|
||||
@payment_method_setting = PaymentMethodSetting.all
|
||||
end
|
||||
|
||||
@rebate = MembershipSetting.find_by_rebate(1)
|
||||
@sale_data = Sale.find_by_sale_id(@sale_id)
|
||||
|
||||
Reference in New Issue
Block a user