Oliver
94fa424440
Table tweaks
2022-04-29 13:13:12 +10:00
Oliver
8fc34a21a6
Reload the untracked stock table when allocation actions are performed
2022-04-29 12:59:20 +10:00
Oliver Walters
0bda9c974e
PEP fixes
2022-04-29 01:35:09 +10:00
Oliver Walters
6b4592b3dc
Display error if stock item is "double allocted"
2022-04-29 01:10:05 +10:00
Oliver Walters
6e52ca2178
Refactor button callbacks
...
- Add button to expand all output rows
- Add button to collapse all output rows
2022-04-29 00:44:29 +10:00
Oliver Walters
cb7c4396fb
Refactor build page template
...
- Only load build outputs table as required
2022-04-28 22:59:24 +10:00
Oliver Walters
b63352ce20
Add a stock item transaction when installing items into a build output
2022-04-28 22:58:58 +10:00
Oliver Walters
f531e354b9
Allow completion of partially allocated build outputs
...
- Requires manual acceptance from user
2022-04-28 21:54:38 +10:00
Oliver
0841c628e0
Adds ability to filter build items by "tracked" flag
2022-04-28 17:27:09 +10:00
Oliver
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
Oliver Walters
c7257a1bd3
build order
2022-04-10 20:03:40 +10:00
Kálmán Rózsahegyi
6bd5e652ee
Fix translation on delete_build form
2022-03-31 15:23:26 +02:00
Oliver
f24aa37f8f
Allow labels to be printed from the "incomplete build output" table
2022-03-24 16:34:47 +11:00
Oliver
4caf73e0e3
Change sidebar text to be consistent
2022-03-09 16:19:52 +11:00
Oliver
4cd41bd0a3
Display "loading" until allocations loaded
2022-03-09 15:23:23 +11:00
Oliver
4191a043b2
Add "exclude_location" to build order auto-allocation
2022-03-09 14:57:57 +11:00
Oliver
fe8ea5568f
Bug fix for build order panel loading
2022-03-09 13:58:48 +11:00
Oliver
9f8f900e17
Wrap server queries in onPanelLoad calls, to reduce initial page load time
2022-03-09 13:14:04 +11:00
Oliver
7986e0752d
Bug fix: Allocation quantity for "auto allocate" of tracked parts must be 1
2022-03-09 13:03:38 +11:00
Oliver
70c9c9473d
Unit test fixes
2022-03-04 17:27:07 +11:00
Oliver
0bb0047fcd
Add unit tests for the auto_allocate_stock method
2022-03-04 16:27:50 +11:00
Oliver
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
Oliver
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
Oliver
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
Oliver
b00ae67d68
Pass dates in templates through the new template tag
2022-02-28 19:10:33 +11:00
Oliver
baab955756
Further fixes for unit tests
2022-02-25 17:17:34 +11:00
Oliver
d9e1302eaf
Fixes for unit testing
2022-02-25 16:42:35 +11:00
Oliver
fea6091e42
Fix incorrect inputs
2022-02-25 15:57:30 +11:00
Oliver
9e3406efc9
Add stock tracking code to indicate stock has been consumed by a build order
2022-02-25 15:56:09 +11:00
Oliver
bb164ed72a
Remove old unused functions
2022-02-25 15:47:07 +11:00
Oliver
3dde0dbb2b
PEP fixes
2022-02-25 15:43:45 +11:00
Oliver
ab82f07ef1
Bug fix for BuildOutputComplete serializer
...
- Actually use the provided "location" value!
2022-02-25 15:41:10 +11:00
Oliver
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
Matthias
7be832cc9b
[BUG] Unable to create build output
...
Fix if no allocate set
Fixes #2663
2022-02-23 02:01:46 +01:00
Oliver
bc6839d56e
Spelling fix
2022-02-17 08:18:15 +11:00
Oliver
49fe528f4e
Merge pull request #2630 from matmair/coverage-fixes
...
Coverage fixes
2022-02-16 07:55:12 +11:00
Oliver
2b344f1f25
PEP style fixes
2022-02-15 13:30:14 +11:00
Oliver
09853fd3df
remove code which is now unused
2022-02-15 13:27:30 +11:00
Oliver
07af0902a3
Optionally auto-allocate stock items when creating a new build output
2022-02-15 13:27:14 +11:00
Oliver
24c13b04b6
Extract serial numbers from submitted form data
2022-02-15 13:19:41 +11:00
Oliver
f90a27d01d
Adds a new API endpoint for creating build outputs
2022-02-15 12:51:48 +11:00
Matthias
0eb6d46c4b
remove dead code
2022-02-13 20:23:15 +01:00
Matthias
0ad3b5bcba
ignore coverage in exsisting migrations
2022-02-13 17:45:46 +01:00
Matthias
e693fe1e41
fix migration coverage for build
2022-02-13 04:55:39 +01:00
Oliver
71f9399760
Cleanup
2022-02-10 00:50:21 +11:00
Oliver
0d7b94fbfa
Remove old form code which is no longer used
2022-02-10 00:48:06 +11:00
Oliver
96af074365
Adds API endpoint to delete build outputs
2022-02-10 00:46:38 +11:00
Oliver
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
Oliver
2b11d5ed52
Merge pull request #2595 from SchrodingersGat/build-refresh
...
Build refresh
2022-02-03 15:30:41 +11:00
Oliver
c6089a2828
Reload completed output table
2022-02-03 14:47:35 +11:00