credit note payment

This commit is contained in:
Nweni
2017-06-26 17:49:55 +06:30
parent e878275c1b
commit 089848ed4a
8 changed files with 200 additions and 13 deletions

View File

@@ -39,6 +39,7 @@ class Origami::PaymentsController < BaseOrigamiController
@visacount= 0.0
@jcbcount= 0.0
@mastercount = 0.0
@credit = 0.0
@sale_data = Sale.find_by_sale_id(sale_id)
#get customer amount
@@ -75,6 +76,8 @@ class Origami::PaymentsController < BaseOrigamiController
@jcbcount += spay.payment_amount
elsif spay.payment_method == "master"
@mastercount += spay.payment_amount
elsif spay.payment_method == "creditnote"
@credit += spay.payment_amount
end
end
end