Open
Description
In the case where the entire cumulative cap mass is in a material buy policy facility at the same time and the cumulative cap is exactly equal to the maximum inventory size, rounding may cause an inability to reach the cap all at once. This mostly presents when the incoming material is being item-packaged (strict packaging limits).
No-code-change solution is for users always ensure max_inv_size
is greater than cumulative_cap
.
A code solution might be to check if the space available (max inventory minus quantity) is within eps_rsrc()
of the remaining cycle cap (cumulative cap minus cycle cumulative inventory).
Issue similar to #1797 but specifically arises in the material buy policy rather than in the packaging.
Metadata
Assignees
Labels
No labels
Activity