update rounding 0 for foc and memberdiscount

This commit is contained in:
Aung Myo
2017-12-29 09:22:22 +06:30
parent c8d31e4523
commit ad690c562b

View File

@@ -263,6 +263,7 @@ class Origami::PaymentsController < BaseOrigamiController
saleObj = Sale.find(sale_id)
if saleObj.discount_type == "member_discount"
sale.update_attributes(rounding_adj: 0)
saleObj.compute_by_sale_items(sale_id, saleObj.sale_items,0)
end