Text this: Optimizing Ordering Policies for Imperfect Inventory Systems Integrating Trade Credit and Carbon Emission