From 57163a04fe2bc6c4ee785343f00487985879b05b Mon Sep 17 00:00:00 2001 From: phyusin Date: Thu, 28 Jun 2018 15:40:54 +0630 Subject: [PATCH] inventory comment --- 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 0933ad1a..33c7f1b6 100644 --- a/app/models/sale.rb +++ b/app/models/sale.rb @@ -151,8 +151,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