Closed-loop real-time supply chain management for perishable products