# FIX|Fix - Update to the MRP Efficiency Loss Calculation #36346
+8
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
FIX|Fix #Update to the MRP Efficiency Loss Calculation
Explanation of the issue and the proposed fix
In the MRP module, the current calculation of raw-material consumption when a production efficiency lower than 1 is defined uses the formula:
BOM_qty × quantity_to_produce / efficiency.
This implicitly interprets efficiency as output = input × efficiency, which generates non-rounded and unintuitive consumption values (e.g., 53,333.33 µL for a 10% loss). As a consequence, stock levels on consumed lots rarely reach zero, creating discrepancies and making inventory harder to manage.
In real manufacturing practice, users commonly interpret efficiency as a loss rate: an efficiency of 0.9 means a 10% loss, so the consumed quantity should increase by 10%. The correct expected formula is therefore:
BOM_qty × quantity_to_produce × (2 − efficiency)
For example, 48,000 µL × (2 − 0.9) = 52,800 µL, which accurately reflects a 10% loss added on top of the nominal required quantity.
The proposed patch replaces the division-based calculation with this loss-factor approach, resulting in more realistic consumption quantities and cleaner stock movements, avoiding artificial leftovers. The related UI display has also been updated to clearly show the new calculation logic to users.