shop code
This commit is contained in:
@@ -136,7 +136,7 @@ class OrderItem < ApplicationRecord
|
||||
print instance_code
|
||||
end
|
||||
if self.qty != self.qty_before_last_save
|
||||
found, inventory_definition = InventoryDefinition.find_product_in_inventory(self,instance_code)
|
||||
found, inventory_definition = InventoryDefinition.find_product_in_inventory(self,self.order.shop_code)
|
||||
if found
|
||||
InventoryDefinition.check_balance(self, inventory_definition)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user