some wrong in memberdiscount and no pay if any card payment

This commit is contained in:
Yan
2017-11-28 15:57:19 +06:30
parent 2e1ba833e8
commit 93db6130a1
4 changed files with 12 additions and 15 deletions

View File

@@ -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)