Oliver
535d45bce4
Remove outdated Views / Forms
2021-10-06 20:19:29 +11:00
Oliver
336b05aa4e
Exclude sales order allocations when searching stock
2021-10-06 17:42:00 +11:00
Oliver
758e402a66
PEP style fixes
2021-10-05 23:06:12 +11:00
Oliver
102f886d81
All stock adjustment actions ported to new scheme
...
- Bumped API version too
2021-10-05 22:26:21 +11:00
Oliver
f197d8b1da
Adds a DRF serializer for stock adjustments
...
- Currently the "StockCount" action has been transferred
2021-10-05 22:04:17 +11:00
Oliver
563deb5ffa
Add ability to specify "source location" for stock allocations
...
- Defaults to build.take_from
- User-selectable at run-time
- Selected value affects select2 query
2021-10-05 10:38:18 +11:00
Oliver
ae0efe73d1
Further improvements to build allocation form
...
- Auto-allocation button ignores outputs which are complete
- StockItem API allows filtering by BomItem
- Quantity inputs are now auto-filled
- Display progress bar in the modal form
2021-10-05 08:25:10 +11:00
Oliver
16e00962f5
Override the "delete" behaviour for StockItem API
...
- Mark for deletion instead of calling database delete
- Returns (almost) instantly instead of hanging
- Much better UI experience when performing bulk delete operations
2021-09-28 10:14:25 +10:00
Oliver
7d3cd03d6c
Add "scheduled_for_deletion" field to StockItem
...
- If set to True, this StockItem will be deleted (soon) by the background worker
- As deletion takes significant time, this prevents delete operations from blocking the UI
2021-09-07 16:28:57 +10:00
Oliver
bad246bca6
Fixes for ordering of stock table
2021-08-26 08:24:31 +10:00
Oliver
4ee0004c97
Filtering for Build and StockItem
2021-07-21 21:34:16 +10:00
Oliver
9cf372f633
PEP fixes
2021-07-21 21:24:18 +10:00
Oliver
85a40ec418
Tree exclusion for PartCategory and StockLocation
2021-07-21 21:23:30 +10:00
Oliver
598ea11211
Add manager class for StockItem
2021-07-21 09:28:58 +10:00
Oliver Walters
753fe9c80f
Ordering and rendering for StockLocation
2021-07-18 21:15:51 +10:00
Oliver
77cfadad42
Add 'title' option for contsructed fields
2021-07-12 21:11:29 +10:00
Oliver
9fc7976569
Refactor all "adjustment" forms to use the new API approach
2021-07-12 20:38:54 +10:00
Oliver
2bebf2d41a
Test fixes
2021-07-12 20:00:50 +10:00
Oliver
11ee8e8369
Raise error if specified quantity is above available quantity
2021-07-12 19:59:10 +10:00
Oliver
51314a0261
Refactor error messaging for stock adjustment API
2021-07-12 19:41:50 +10:00
Oliver
e04828214a
Refactor showApiError() function
2021-07-12 19:20:29 +10:00
Oliver
e3f85414fa
Stock API URL cleanup
2021-07-12 17:32:06 +10:00
Oliver
c045a3b6f6
Refactorin'
2021-07-11 20:36:52 +10:00
Oliver
a985e11aa8
Simplify and add filters for StockList API endpoint
2021-07-08 20:10:22 +10:00
Oliver
c7f79a5a08
Fixes
2021-07-08 19:23:01 +10:00
Oliver
79d90b1c4a
Additional filtering options for name and IPN fields
2021-07-08 17:46:57 +10:00
Oliver
f0e7826fdc
Adds some more API filters for the StockItem endpoint
2021-07-08 17:44:52 +10:00
Oliver
81010994e7
Adds regex filtering for "batch" code on StockItem
2021-07-08 17:26:55 +10:00
Oliver
2b7805e668
PEP fix
2021-07-03 20:34:30 +10:00
Oliver
8d1928f181
Typo fix
2021-07-03 20:29:23 +10:00
Oliver
ce703bf94b
Adds detail API endpoint for StcokItemTracking model
2021-07-03 20:26:33 +10:00
Oliver
90a3a8a288
Merge remote-tracking branch 'inventree/master' into drf-api-forms
2021-07-03 12:35:40 +10:00
f051714a75
style fix
2021-07-02 16:34:06 +02:00
9c8717574a
implement purchase price filter for stock table
...
Closes #1717
2021-07-02 16:31:42 +02:00
Oliver
984828f3bb
Specify 'default' functions for 'reference' field in SalesOrder and PurchaseOrder
...
- Refactor CreatePurchaseOrder form
- Some migrations
2021-07-02 23:59:02 +10:00
Oliver
bb0a72f235
Refactor forms for StockItemTestResult
...
- Add DETAIL endpoint for model
- Remove old views
- Remove old forms
2021-07-01 14:31:37 +10:00
Oliver
8c439e52fd
PEP fix
2021-06-30 09:41:13 +10:00
Oliver
54c9bd25a5
Add detail endpoint for StockItemAttachment
2021-06-30 09:40:54 +10:00
Oliver
04374c71c2
Annotate models with their API list view
...
- It will make sense, trust me
2021-06-25 00:17:58 +10:00
Oliver Walters
5204567628
Bug fix for stock item tracking API
2021-05-18 19:06:41 +10:00
Oliver Walters
30ff48d803
Fixes
2021-05-12 10:09:02 +10:00
Oliver Walters
68b53acbf1
remove old fields from the StockItemTracking model
2021-05-12 08:07:03 +10:00
Oliver Walters
03a231bffb
Updates
...
- Add StockHistoryCode to custom context
- Add simple form for editing stock item history
- Add tracking entry when stock status is changed
2021-05-11 23:38:26 +10:00
Oliver Walters
0c19a94f5c
Add run-time addition of extra data to the API
2021-05-11 22:50:58 +10:00
Oliver Walters
70ad0ba0de
Improve reporting in stock history API
2021-05-11 17:41:17 +10:00
f2b0717d10
removes all lines consisting only of spaces
...
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
Oliver Walters
4d1eb51bc4
Fixes
2021-04-20 20:42:55 +10:00
Oliver Walters
fd3e59650a
Style fixes
2021-04-20 20:15:51 +10:00
Oliver Walters
c5fa0bb459
Improved API filtering for PartCategory
2021-04-20 20:15:06 +10:00
Oliver Walters
412b05d76c
Allow API filtering by "cascading" stock locations
2021-04-20 20:00:15 +10:00