Serialized inventory tracking and linkage of BOM components with sales order