2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00
Commit Graph

776 Commits

Author SHA1 Message Date
b63352ce20 Add a stock item transaction when installing items into a build output 2022-04-28 22:58:58 +10:00
f531e354b9 Allow completion of partially allocated build outputs
- Requires manual acceptance from user
2022-04-28 21:54:38 +10:00
0841c628e0 Adds ability to filter build items by "tracked" flag 2022-04-28 17:27:09 +10:00
85fd247878 Fix for 'auto-allocate' stock to build orders
- Allocation of serialized stock items would cause issue
- Exclude serialized stock from auto allocation process
2022-04-26 15:54:03 +10:00
c7257a1bd3 build order 2022-04-10 20:03:40 +10:00
6bd5e652ee Fix translation on delete_build form 2022-03-31 15:23:26 +02:00
f24aa37f8f Allow labels to be printed from the "incomplete build output" table 2022-03-24 16:34:47 +11:00
4caf73e0e3 Change sidebar text to be consistent 2022-03-09 16:19:52 +11:00
4cd41bd0a3 Display "loading" until allocations loaded 2022-03-09 15:23:23 +11:00
4191a043b2 Add "exclude_location" to build order auto-allocation 2022-03-09 14:57:57 +11:00
fe8ea5568f Bug fix for build order panel loading 2022-03-09 13:58:48 +11:00
9f8f900e17 Wrap server queries in onPanelLoad calls, to reduce initial page load time 2022-03-09 13:14:04 +11:00
7986e0752d Bug fix: Allocation quantity for "auto allocate" of tracked parts must be 1 2022-03-09 13:03:38 +11:00
70c9c9473d Unit test fixes 2022-03-04 17:27:07 +11:00
0bb0047fcd Add unit tests for the auto_allocate_stock method 2022-03-04 16:27:50 +11:00
71cd6c93d1 Assign sorting priority when allocating parts to a build order
1. Direct match parts
2. Variant parts
3. Any other parts (e.g. substitute parts)
2022-03-04 16:02:50 +11:00
434f563a41 Adds API endpoint for "auto allocating" stock items against a build order.
- If stock exists in multiple locations, and the user "does not care" where to take from, simply iterate through and take
2022-03-04 15:26:00 +11:00
28a7ad7f0e Bug fix for BuildOrder.bom_items
- Now uses the query generator provided by the Part model
- No more code duplication
- More importantly, no more code duplication which is WRONG!
2022-03-01 23:53:33 +11:00
b00ae67d68 Pass dates in templates through the new template tag 2022-02-28 19:10:33 +11:00
baab955756 Further fixes for unit tests 2022-02-25 17:17:34 +11:00
d9e1302eaf Fixes for unit testing 2022-02-25 16:42:35 +11:00
fea6091e42 Fix incorrect inputs 2022-02-25 15:57:30 +11:00
9e3406efc9 Add stock tracking code to indicate stock has been consumed by a build order 2022-02-25 15:56:09 +11:00
bb164ed72a Remove old unused functions 2022-02-25 15:47:07 +11:00
3dde0dbb2b PEP fixes 2022-02-25 15:43:45 +11:00
ab82f07ef1 Bug fix for BuildOutputComplete serializer
- Actually use the provided "location" value!
2022-02-25 15:41:10 +11:00
44008f33e2 Refactoring Build model functions
- Determining if a build order is correctly allocated has become more complex
- Complex BOM behaviours (e.g. variants, templates, and substitutes) have made it more difficult!
- Recently, a reference to the defining BomItem object was added to the BuildItem model
- Now, a simpler way is to check allocation against the parent BomItem
- It is much better, but means that a lot of refactoring and testing will be required!
2022-02-25 15:40:49 +11:00
7be832cc9b [BUG] Unable to create build output
Fix if no allocate set
Fixes #2663
2022-02-23 02:01:46 +01:00
bc6839d56e Spelling fix 2022-02-17 08:18:15 +11:00
49fe528f4e Merge pull request #2630 from matmair/coverage-fixes
Coverage fixes
2022-02-16 07:55:12 +11:00
2b344f1f25 PEP style fixes 2022-02-15 13:30:14 +11:00
09853fd3df remove code which is now unused 2022-02-15 13:27:30 +11:00
07af0902a3 Optionally auto-allocate stock items when creating a new build output 2022-02-15 13:27:14 +11:00
24c13b04b6 Extract serial numbers from submitted form data 2022-02-15 13:19:41 +11:00
f90a27d01d Adds a new API endpoint for creating build outputs 2022-02-15 12:51:48 +11:00
0eb6d46c4b remove dead code 2022-02-13 20:23:15 +01:00
0ad3b5bcba ignore coverage in exsisting migrations 2022-02-13 17:45:46 +01:00
e693fe1e41 fix migration coverage for build 2022-02-13 04:55:39 +01:00
71f9399760 Cleanup 2022-02-10 00:50:21 +11:00
0d7b94fbfa Remove old form code which is no longer used 2022-02-10 00:48:06 +11:00
96af074365 Adds API endpoint to delete build outputs 2022-02-10 00:46:38 +11:00
78b1c7a22b Skips some specific steps when importing data
- We need to prevent certain operations from running when we are importing data
- This is to prevent unique database constraints from being violated

- Do not register plugins during data import
- Do not launch notification events
2022-02-03 16:03:46 +11:00
2b11d5ed52 Merge pull request #2595 from SchrodingersGat/build-refresh
Build refresh
2022-02-03 15:30:41 +11:00
c6089a2828 Reload completed output table 2022-02-03 14:47:35 +11:00
566fd87e86 PEP style fixes 2022-02-03 14:16:33 +11:00
b387b4e173 Prevent build outputs being created with zero quantity 2022-02-03 14:13:13 +11:00
00d7cf88e8 Throw validation error if no build outputs have been started 2022-02-01 15:58:18 +11:00
318e84883a Adds a warning if no build outputs are created 2022-02-01 15:51:38 +11:00
967efae8f1 make simpler 2022-01-20 23:55:48 +01:00
fde2b03172 Merge remote-tracking branch 'inventree/master' into triggers
# Conflicts:
#	InvenTree/plugin/mixins/__init__.py
2022-01-10 20:34:42 +11:00