some wrong in memberdiscount and no pay if any card payment
This commit is contained in:
@@ -161,7 +161,7 @@ class Origami::DiscountsController < BaseOrigamiController
|
||||
sale = Sale.find(sale_id)
|
||||
|
||||
# Check for Card Payment
|
||||
is_card_payment = SaleItem.get_sale_payments_by_card(sale.sale_payments)
|
||||
is_card_payment = SalePayment.get_sale_payments_by_card(sale.sale_payments)
|
||||
|
||||
if is_card_payment != true
|
||||
account_types = Account.where("discount=?",true)
|
||||
|
||||
Reference in New Issue
Block a user