Please sign in to comment.
[FIX] mrp: do not lose done quantities when updating the quantity to …
…do of a MO Suppose you have a workorder to create n units of product P, using raw material R (suppose we use one for one, the following can be extended to any number of raw materials and factors in a straightforward manner). Produce j < n units of P. Next, update the quantity to produce to j < k < n. Since any number m of units between j and n may already have been reserved, in particular values such that m > k, the move will unreserve the material R. However, while doing so it will unlink the move_lines, and lose the quantity_done (j). The newly created move lines have a quantity_done of zero by default. Therefore, we store in a dictionary the quantities done for each move line, and reset these values once the unreservation/reservation of k units is done. opw 1911969 closes #28990
- Loading branch information...
Showing with 4 additions and 0 deletions.