bugs fixed

This commit is contained in:
Aung Myo
2018-05-16 13:17:52 +06:30
parent 7c72d4b9a8
commit 800ea01f23
9 changed files with 88 additions and 49 deletions

View File

@@ -335,10 +335,13 @@ class Origami::PaymentsController < BaseOrigamiController
end
@sale_data.sale_payments.each do |spay|
if spay.payment_method == "cash"
if spay.payment_method == "cash"
@cash = spay.payment_amount
end
@other_payment += spay.payment_amount
if spay.payment_method !="creditnote"
@other_payment += spay.payment_amount
end
if spay.payment_method == "mpu"
@other += spay.payment_amount
elsif spay.payment_method == "paypar"