From 89c8b9a9ccb9a991ae9672ab9f53ca5203162eb3 Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 25 Jul 2017 18:08:04 +0630 Subject: [PATCH] fix for re-calc tax for gram sale --- app/models/sale.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/sale.rb b/app/models/sale.rb index fc2a761b..0fcb7923 100644 --- a/app/models/sale.rb +++ b/app/models/sale.rb @@ -249,7 +249,7 @@ class Sale < ApplicationRecord if item.remark != 'void' #compute each item and added to total subtotal_price = subtotal_price + item.price - total_taxable = total_taxable + item.taxable_price + total_taxable = total_taxable + item.price end end