add new payment for aston request

This commit is contained in:
phyusin
2018-05-29 14:29:38 +06:30
parent 089630616d
commit 930e8d29d5
16 changed files with 397 additions and 40 deletions

View File

@@ -234,6 +234,7 @@ class Origami::PaymentsController < BaseOrigamiController
@credit = 0.0
@paymalcount = 0.0
@dingacount = 0.0
@giftvouchercount = 0.0
@sale_data = Sale.find_by_sale_id(sale_id)
@balance = 0
@accountable_type = ''
@@ -373,6 +374,8 @@ class Origami::PaymentsController < BaseOrigamiController
@alipaycount += spay.payment_amount
elsif spay.payment_method == "dinga"
@dingacount += spay.payment_amount
elsif spay.payment_method == "giftvoucher"
@giftvouchercount += spay.payment_amount
end
end
end