This commit is contained in:
Myat Zin Wai Maw
2019-06-21 14:44:08 +06:30
parent db30ff9fcb
commit 8f8ef8ac2c

View File

@@ -4,6 +4,8 @@ class InventoryDefinition < ApplicationRecord
def self.calculate_product_count(saleObj=nil,saleobj_after_req_bill=nil)
if !saleObj.nil?
Rails.logger.debug "Hello count"
Rails.logger.debug saleObj.sale_items.count
saleObj.sale_items.each do |item|
found, inventory_definition = find_product_in_inventory(item)
if found