inventory control: fix bug
inventory control: fix bug: a task in smol-software-harbor (Harbor dataset). The ABC analysis puts our most valuable SKU into class B when it alone makes up more than 80 % of the consumption value ( test dominant item fails): the cumulative share must be the value of the SKUs before the current…
The task
The ABC analysis puts our most valuable SKU into class B when it alone makes up more than 80 % of the consumption value (`test_dominant_item` fails): the cumulative share must be the value of the SKUs *before* the current one, as documented. Fix `abc_classes` in `abcinv/classify.py` and run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.