A fix accepted into the PrestaShop core
Problem
Stock levels for product packs didn't add up. I disabled the
customizations and diffed the files against a clean core:
the bug was in the PrestaShop engine itself.
Pack::getQuantity ignored the "Decrement
pack only" type, because empty(0) evaluates
to true.
What I did
I reported the bug together with a fix. A project maintainer merged it into the 9.2.x branch. In the client's store, I moved the workaround from a core modification to an override.