stock replenishment: refactor extract
stock replenishment: refactor extract: a task in smol-software-harbor (Harbor dataset). In reorder/reorder.go , NeedsReorder and Shortfall repeat the reorder-point formula instead of calling ReorderPoint . Make both use ReorderPoint(it) so the formula exists in exactly one place; behaviour must…
The task
In `reorder/reorder.go`, `NeedsReorder` and `Shortfall` repeat the reorder-point formula instead of calling `ReorderPoint`. Make both use `ReorderPoint(it)` so the formula exists in exactly one place; behaviour must stay the same. Run `go test ./...`.
Part of efederici/smol-software-harbor.