inventory_costing__fifo_cogs
Calculate cost of goods sold and ending inventory value using FIFO method from purchase history and units sold.
Instructions
[inventory-costing] purchases: list of (units, unit_cost) in order. Returns COGS and ending value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purchases | Yes | ||
| units_sold | Yes |