[FIX] Lead time bug. [ADD] disable sum if max stock

Merged Ignacio Goitea requested to merge JW-243 into 13.0-stage

Closes JW-243

Merge request reports