fixed inventory

This commit is contained in:
NyanLinHtut
2019-09-13 21:13:04 +06:30
parent e0b54728f7
commit 4808947fcd
9 changed files with 228 additions and 172 deletions

View File

@@ -308,7 +308,7 @@ class Origami::PaymentsController < BaseOrigamiController
logger.debug saleObj.to_json
if !saleObj.nil?
# InventoryJob.perform_now(self.id)
InventoryDefinition.calculate_product_count(saleObj)
# InventoryDefinition.calculate_product_count(saleObj)
end
end
@@ -749,7 +749,7 @@ class Origami::PaymentsController < BaseOrigamiController
# end
if !saleObj.nil?
#InventoryJob.perform_now(self.id)
InventoryDefinition.calculate_product_count(saleObj)
# InventoryDefinition.calculate_product_count(saleObj)
end
end
end