From bbd708e91d35d0d5da7b27d54b78f5c6497bd2ef Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Fri, 29 Dec 2017 14:44:01 +0630 Subject: [PATCH] update foc error for name error --- app/controllers/origami/payments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/origami/payments_controller.rb b/app/controllers/origami/payments_controller.rb index 96b044f5..0bc77fc3 100755 --- a/app/controllers/origami/payments_controller.rb +++ b/app/controllers/origami/payments_controller.rb @@ -263,7 +263,7 @@ class Origami::PaymentsController < BaseOrigamiController saleObj = Sale.find(sale_id) if saleObj.discount_type == "member_discount" - sale.update_attributes(rounding_adjustment: 0) + saleObj.update_attributes(rounding_adjustment: 0) saleObj.compute_by_sale_items(sale_id, saleObj.sale_items,0) end