mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-25 13:03:02 +00:00
* test: cover the rows that have nothing left to order in the mrp report a row whose requirement is already met by stock or by an order placed earlier fails the order it is selected for, takes the rows beside it down with it, and what rounding leaves behind of it is ordered as if it were a real quantity. the work order made from a row of the schedule also has to keep the work in progress warehouse the company keeps for it. * fix: skip covered rows when ordering from the mrp report a row whose requirement is already met by stock or by orders that were placed earlier nets down to a required qty of zero. making an order from it threw "Qty To Manufacture cannot be 0", and since nothing caught it, none of the other selected rows were created either. such rows are now left alone, and selecting only covered rows says so instead of failing. the quantity ordered stays the one that is still needed. taking the planned qty instead would order everything that stock and the open orders already cover. it is read at the precision an order stores it in, so what is left of a covered row after all the subtracting does not become an order line of its own.