Matt Brown 139e059a45
Check for (and reduce) overallocated stock when editing build orders. (#3237)
* Check for (and reduce) overallocated stock when editing build orders.

After a build order is edited, check whether any bom items are now
overallocated to the build, and if they are find appropriate build items to
reduce the quantity of or remove from the build.

Fixes: #3236

* Only trim overallocated stock if requested

Turns the complete with overallocated stock option into a choice, so the
user can reject (default), continue (existing option in the bool), or
now additionally instead choose to have the overallocated stock removed
before the build is completed.

* fix style errors

* Another style fix.

* Add tests for overallocation handling API logic

* Capitalize overallocation options.
2022-08-10 21:37:29 +10:00
..
2022-08-09 09:42:53 +10:00
2022-07-27 10:42:34 +10:00
2022-08-08 23:34:22 +10:00
2022-08-04 10:19:53 +10:00
2022-08-09 09:42:53 +10:00
2022-07-27 10:42:34 +10:00
2022-08-07 22:46:33 +10:00
2022-08-09 09:42:53 +10:00