merge with master

This commit is contained in:
Yan
2017-06-14 19:43:05 +06:30
15 changed files with 284 additions and 70 deletions

View File

@@ -35,6 +35,9 @@ class Origami::PaymentsController < BaseOrigamiController
@cash = 0.0
@other = 0.0
@ppamount = 0.0
@visacount= 0.0
@jcbcount= 0.0
@mastercount = 0.0
@sale_data = Sale.find_by_sale_id(sale_id)
#get customer amount
@@ -64,6 +67,12 @@ class Origami::PaymentsController < BaseOrigamiController
@other += spay.payment_amount
elsif spay.payment_method == "paypar"
@ppamount += spay.payment_amount
elsif spay.payment_method == "visa"
@visacount += spay.payment_amount
elsif spay.payment_method == "jcb"
@jcbcount += spay.payment_amount
elsif spay.payment_method == "master"
@mastercount += spay.payment_amount
end
end
end