Commit Graph

210 Commits

Author SHA1 Message Date
98bbee8159 Adds function to lookup stock item by serial number 2021-12-02 15:55:00 +11:00
d884e62be1 [FR] Confirm to W293
Fixes #2335
2021-11-23 00:28:23 +01:00
15a0d260f8 Handle case where user is not specified 2021-11-18 23:15:40 +11:00
bfb32f3bf6 Record the user information when creating or updating a stock item 2021-11-18 21:26:26 +11:00
25ce043337 Adjust ordering sequence for StockItem 2021-11-10 11:00:43 +11:00
85b906f49d Adds "stock" column sorting for stock table 2021-11-10 09:48:52 +11:00
78ac40083a Fixes for stock api unit tests
- Remove old unit tests
- Require quantity when creating a new stock item
2021-11-05 00:27:26 +11:00
b41dbba2b0 Correctly handle serialization of newly created stock 2021-11-04 23:18:59 +11:00
be7b224f14 Adds API endpoint for serialization of stock items 2021-11-03 10:12:42 +11:00
2b69d9c2af Correctly serialize stock when creating via the API 2021-11-03 07:41:47 +11:00
c2a8cfd183 PEP style fixes 2021-10-30 12:57:49 +11:00
4eea8c8193 Remove old tree classes 2021-10-30 00:18:41 +11:00
535d45bce4 Remove outdated Views / Forms 2021-10-06 20:19:29 +11:00
336b05aa4e Exclude sales order allocations when searching stock 2021-10-06 17:42:00 +11:00
758e402a66 PEP style fixes 2021-10-05 23:06:12 +11:00
102f886d81 All stock adjustment actions ported to new scheme
- Bumped API version too
2021-10-05 22:26:21 +11:00
f197d8b1da Adds a DRF serializer for stock adjustments
- Currently the "StockCount" action has been transferred
2021-10-05 22:04:17 +11:00
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
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
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
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
bad246bca6 Fixes for ordering of stock table 2021-08-26 08:24:31 +10:00
4ee0004c97 Filtering for Build and StockItem 2021-07-21 21:34:16 +10:00
9cf372f633 PEP fixes 2021-07-21 21:24:18 +10:00
85a40ec418 Tree exclusion for PartCategory and StockLocation 2021-07-21 21:23:30 +10:00
598ea11211 Add manager class for StockItem 2021-07-21 09:28:58 +10:00
753fe9c80f Ordering and rendering for StockLocation 2021-07-18 21:15:51 +10:00
77cfadad42 Add 'title' option for contsructed fields 2021-07-12 21:11:29 +10:00
9fc7976569 Refactor all "adjustment" forms to use the new API approach 2021-07-12 20:38:54 +10:00
2bebf2d41a Test fixes 2021-07-12 20:00:50 +10:00
11ee8e8369 Raise error if specified quantity is above available quantity 2021-07-12 19:59:10 +10:00
51314a0261 Refactor error messaging for stock adjustment API 2021-07-12 19:41:50 +10:00
e04828214a Refactor showApiError() function 2021-07-12 19:20:29 +10:00
e3f85414fa Stock API URL cleanup 2021-07-12 17:32:06 +10:00
c045a3b6f6 Refactorin' 2021-07-11 20:36:52 +10:00
a985e11aa8 Simplify and add filters for StockList API endpoint 2021-07-08 20:10:22 +10:00
c7f79a5a08 Fixes 2021-07-08 19:23:01 +10:00
79d90b1c4a Additional filtering options for name and IPN fields 2021-07-08 17:46:57 +10:00
f0e7826fdc Adds some more API filters for the StockItem endpoint 2021-07-08 17:44:52 +10:00
81010994e7 Adds regex filtering for "batch" code on StockItem 2021-07-08 17:26:55 +10:00
2b7805e668 PEP fix 2021-07-03 20:34:30 +10:00
8d1928f181 Typo fix 2021-07-03 20:29:23 +10:00
ce703bf94b Adds detail API endpoint for StcokItemTracking model 2021-07-03 20:26:33 +10:00
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
984828f3bb Specify 'default' functions for 'reference' field in SalesOrder and PurchaseOrder
- Refactor CreatePurchaseOrder form
- Some migrations
2021-07-02 23:59:02 +10:00
bb0a72f235 Refactor forms for StockItemTestResult
- Add DETAIL endpoint for model
- Remove old views
- Remove old forms
2021-07-01 14:31:37 +10:00
8c439e52fd PEP fix 2021-06-30 09:41:13 +10:00
54c9bd25a5 Add detail endpoint for StockItemAttachment 2021-06-30 09:40:54 +10:00