From 9f04fae6922760efd92a6934cb3e8913de19b575 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Fri, 29 Dec 2017 10:00:36 +0630 Subject: [PATCH] update rouding adj --- Gemfile.lock | 2 +- app/controllers/origami/payments_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index b7804803..05be67ea 100755 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -336,7 +336,7 @@ DEPENDENCIES whenever RUBY VERSION - ruby 2.4.0p0 + ruby 2.4.1p111 BUNDLED WITH 1.16.1 diff --git a/app/controllers/origami/payments_controller.rb b/app/controllers/origami/payments_controller.rb index 7b4bedff..96b044f5 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_adj: 0) + sale.update_attributes(rounding_adjustment: 0) saleObj.compute_by_sale_items(sale_id, saleObj.sale_items,0) end