update rouding adj

This commit is contained in:
Aung Myo
2017-12-29 10:00:36 +06:30
parent ad690c562b
commit 9f04fae692
2 changed files with 2 additions and 2 deletions

View File

@@ -336,7 +336,7 @@ DEPENDENCIES
whenever
RUBY VERSION
ruby 2.4.0p0
ruby 2.4.1p111
BUNDLED WITH
1.16.1

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_adj: 0)
sale.update_attributes(rounding_adjustment: 0)
saleObj.compute_by_sale_items(sale_id, saleObj.sale_items,0)
end