update foc error for name error

This commit is contained in:
Aung Myo
2017-12-29 14:44:01 +06:30
parent 9f04fae692
commit bbd708e91d

View File

@@ -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