From ca1bd437cd37dbbfc1a3d3ffd6ef94abb166be49 Mon Sep 17 00:00:00 2001 From: phyusin Date: Tue, 17 Jul 2018 11:18:59 +0630 Subject: [PATCH] remove comment for inventory --- app/models/sale.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/sale.rb b/app/models/sale.rb index e115d499..824cc671 100644 --- a/app/models/sale.rb +++ b/app/models/sale.rb @@ -155,8 +155,8 @@ class Sale < ApplicationRecord booking.save # InventoryJob.perform_now(self.id) - # saleObj = Sale.find(self.id) - # InventoryDefinition.calculate_product_count(saleObj) + saleObj = Sale.find(self.id) + InventoryDefinition.calculate_product_count(saleObj) return true, self.id end