credit payment fix when visa assign

This commit is contained in:
Yan
2017-11-27 14:24:34 +06:30
parent 9ad9e9ae57
commit 0c084a1816
3 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ class Origami::CreditPaymentsController < BaseOrigamiController
@creditcount = 0
others = 0
sale_data.sale_payments.each do |sale_payment|
if sale_payment.payment_method == "visa"
if sale_payment.payment_method == "creditnote"
@creditcount = @creditcount + sale_payment.payment_amount
else
others = others + sale_payment.payment_amount