Merge branch 'feature-inventory-management-inv004' into feature-inventory-management

This commit is contained in:
Avinash Rajesh
2026-05-21 20:14:03 +05:30
3 changed files with 28 additions and 1 deletions
@@ -38,4 +38,14 @@ void InventoryManagementService::removeInventoryItem(const std::string& inventor
item->setState(util::State::INACTIVE);
}
}
}
InventoryItem* InventoryManagementService::getInventoryItem(const std::string& inventoryItemID)
{
int index = m_dataStore.getInventoryItems().find(inventoryItemID);
if (index != -1)
{
return m_dataStore.getInventoryItems().getValueAt(index);
}
return nullptr;
}