2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 12:36:45 +00:00

273 Commits

Author SHA1 Message Date
Oliver Walters
fa2510c42f Use a proper queryset annotation to calculate the "available_variant_stock" 2022-04-21 23:53:03 +10:00
Oliver Walters
d535e4fa12 Add 'available_variant_stock' to BomItem serializer
- Note: This is definitely *not* the optimum solution here
2022-04-15 22:38:31 +10:00
Oliver Walters
ba81e6caf9 Style fixes 2022-04-07 18:50:10 +10:00
Oliver Walters
dc2da4bcb9 BomItem API - improve annotation of available substitute stock quantity 2022-04-05 21:24:57 +10:00
Oliver Walters
e4ca638a2e Add field for substitute_stock (work in progress) 2022-04-04 23:52:45 +10:00
Oliver Walters
c6ba104ae8 Condense into single "available_stock" field 2022-04-04 23:07:44 +10:00
Oliver Walters
f6664b2477 Add annotated fields to BomItem API:
- total-stock / allocated_to_build_orders / allocated_to_sales_orders
2022-04-04 22:50:13 +10:00
Oliver Walters
bf6a9b69ce Annotate with "unallocated_stock" quantity (calculated field) 2022-04-01 17:44:05 +11:00
Oliver Walters
94068f6bad Adds annotation for build order allocation count 2022-04-01 17:31:01 +11:00
Oliver Walters
4e100643f5 Add annotation for "allocated_to_sales_orders" 2022-04-01 17:24:15 +11:00
Oliver Walters
81d5ff8f79 Adds ability to list part parameters via the Part API 2022-03-19 21:56:57 +11:00
Oliver
5dc543618e Allow duplication of subtitute parts when copying a BOM 2022-03-02 00:31:50 +11:00
Matthias
d5bcd256f6
merge statments 2022-02-20 04:26:52 +01:00
Oliver
6e6f9d6c2f Reintroduce option to clear (delete) BOM before uploading new data 2022-02-17 22:54:02 +11:00
Oliver
47f6b709c9 Improve unit testing 2022-02-17 12:10:48 +11:00
Oliver
f399f4fa34 Refactoring API endpoints
- Improved URL naming scheme
2022-02-16 16:57:27 +11:00
Oliver
d7adb6959d Adds functionality to map file columns to model fiels 2022-02-16 14:57:13 +11:00
Oliver
adfa289e9b Enforce proper formatting for 'quantity' field when importing BOM data 2022-02-15 09:11:14 +11:00
Oliver
aa962aac83 Improve part "guess" algorithm 2022-02-09 23:26:13 +11:00
Oliver
001437e083 Increased error checking when uploading BOM data 2022-02-09 23:02:09 +11:00
Oliver
2af617e92b Adds check for duplicate parts when importing 2022-02-09 11:34:25 +11:00
Oliver
67a9c0aeec PEP fixes 2022-02-09 11:31:36 +11:00
Oliver
a9e1357ffb Return per-row error messages when extracting data 2022-02-09 11:30:58 +11:00
Oliver
29c3064ae7 Raise error if imported dataset contains no data rows 2022-02-09 11:27:51 +11:00
Oliver
8fc2695873 Catch potential file processing errors 2022-02-09 08:31:08 +11:00
Oliver
55ff026696 Remove incorrect validation routine 2022-02-07 14:24:40 +11:00
Oliver
c6dc196053 PEP fixes 2022-02-07 12:32:50 +11:00
Oliver
131663cecc Adds options to clear existing BOM data when uploading 2022-02-07 12:20:18 +11:00
Oliver
4f26df3124 bug fix 2022-02-07 11:35:51 +11:00
Oliver
2ade14c47b Check for duplicate BOM items as part of serializer validation 2022-02-07 11:35:07 +11:00
Oliver
a2c48d308f Adds a BomUpload endpoint to handle upload of complete BOM 2022-02-07 10:54:37 +11:00
Oliver
0963602bea Add optional part lookup by "part" field 2022-02-07 08:37:39 +11:00
Oliver
3bd39ec752 Attempt to auto-extract part information based on provided data 2022-02-05 01:26:08 +11:00
Oliver
137c9ff2f2 POST request now returns extracted data rows (as an array of dicts) 2022-02-05 00:30:00 +11:00
Oliver
611592694b Adds serializer for uploading a BOM file and extracting fields 2022-02-05 00:12:11 +11:00
Oliver
70f9a0fe13 Furher logic improvements to BOM copy
- Remove "self" part from list
- Stop inherited BOM items from being copied incorrectly
- Allow user to select whether "inherited" BOM items are copied
2021-12-21 22:07:08 +11:00
Oliver
0c8a047bc2 Adds simply endpoint for BOM duplication 2021-12-21 17:29:14 +11:00
Oliver
a2357b5b46 Fix decimal places for money field 2021-12-12 22:18:29 +11:00
Oliver
e9ae3eb01d Revert to bootstrap-treeview
- More "bootstrappy" design
- Already in code base
- Cleaner API
2021-12-11 00:25:44 +11:00
Matthias
ba921b45ff
remove state from api interface 2021-12-08 22:44:01 +01:00
Matthias
ff5095a270
remove children -> used for reloading 2021-12-08 00:07:05 +01:00
Matthias
596532f312
only one api call 2021-12-08 00:05:34 +01:00
Matthias
948270bbcb
add stuff to mark starting endpoint 2021-12-07 23:54:45 +01:00
Matthias
70939a0cf9
first working example 2021-12-06 22:35:14 +01:00
Oliver
0949bac175 serializer fixes 2021-11-28 14:21:09 +11:00
Oliver
6582fd3d04 Add 'link' field to attachment serializer 2021-11-28 12:57:37 +11:00
Oliver
9e01bc8ff2 Bug fix for serializer detail 2021-11-25 14:45:28 +11:00
Oliver
88df774aef Add part detail filter to PartRelated serializer 2021-11-25 14:42:44 +11:00
Oliver
2065c05519 Adds API endpoints and serializers 2021-11-25 14:18:21 +11:00
Matthias
d884e62be1
[FR] Confirm to W293
Fixes #2335
2021-11-23 00:28:23 +01:00