Commit Graph

76 Commits

Author SHA1 Message Date
Oliver Walters 977316cb3a Include UID field in StockItem API 2020-04-14 22:57:46 +10:00
Oliver Walters 2506aa110b API changes
- Allow SupplierPart to be filtered by 'company' in addition to 'supplier' and 'manufacturer'
- Stock can now also be filtered by 'company'

(cherry picked from commit 1b1cd944be)
2020-04-13 20:20:33 +10:00
Oliver Walters e3102900b6 Allow stock API to filter by parts which are not active 2020-04-11 14:41:07 +10:00
Oliver Walters bc91975f2c Fixes for Stocktransfer API endpoint 2020-04-10 01:01:39 +10:00
Oliver Walters 5b2665edb1 Better API validation 2020-04-10 00:53:04 +10:00
Oliver Walters 41b3f1d39c API cleanup
Add / Remove / Count endpoints now work
2020-04-10 00:03:43 +10:00
Oliver Walters 3e5dc65c49 Bugfix for notes field 2020-04-10 00:03:21 +10:00
Oliver Walters 58a0f40889 Simplifiy stock adjustment APIs
- Separate API endpoints for count / add / remove / transfer
- Unit testing
2020-04-09 22:24:05 +10:00
Oliver Walters f6a1ddf8e7 Re-enable stocktake API 2020-04-09 21:18:55 +10:00
Oliver Walters 96547b885e Include supplier-part information in Stock API 2020-04-06 22:02:23 +10:00
Oliver Walters bbe714c8f7 Bugs!
Thanks, unit testing
2020-04-06 11:21:34 +10:00
Oliver Walters bd407cd226 Rename "URL" to "link" for StockItem and StockItemTracking models 2020-04-06 10:43:06 +10:00
Oliver Walters 2530313e68 Add part_detail and location_detail to the StockItem detail class 2020-04-06 08:38:10 +10:00
Oliver Walters 94b9878c8d Bug fix for stock api
- If a part had an empty image, the thumbnail was improperly encoded
2020-04-05 22:57:42 +10:00
Oliver Walters 0cfb293ca9 List API now uses the thumbnail image 2020-04-05 00:19:37 +11:00
Oliver Walters 92f5648656 Fix API endpoints for Stock app 2020-04-03 12:20:43 +11:00
Oliver Walters d4da6211be StockItem: filtering improvements
- Optional 'cacade' param
- Filter by null parent
2020-04-03 11:40:37 +11:00
Oliver Walters fb94949538 Allow StockLocation filtering of null parent 2020-04-03 11:34:42 +11:00
Oliver Walters 0f4d60dceb StockItem LIST API can now be filtered by StocKItem status 2020-02-17 23:32:43 +11:00
Oliver Walters 23aebab6d0 Display list of build outputs in the Build tab
- Allow StockList api to be filtered by Build id
2020-02-17 23:31:23 +11:00
Oliver Walters ae4ebab957 Display table of StockItems which have been split from the current item
- The StockItem list api now allows filtering by 'ancestor'
- Add 'children' tab for StockItem
- Needed to tweak the unit testing fixtures (yay thanks MPTT)
2020-02-17 22:37:55 +11:00
Oliver Walters 8dd8505a2c More tab updates
- Add Stock tab
- Add Stock table for supplier part
- Allow stock API to be filtered by supplier-part ID
- Add Orders tab
2020-02-12 11:09:37 +11:00
Oliver 1f9e6f4a68
Merge pull request #411 from SchrodingersGat/bom-upload
BOM upload
2019-07-10 15:17:58 +10:00
Oliver Walters 20ec36d3ea Enforce authentication for API access 2019-07-08 19:20:00 +10:00
Oliver Walters b185abbb87 Catch case in which a request.GET is not available
(cherry picked from commit 9296c0ba0f8c4914cd04b820c6172f8c3a794750)
2019-07-08 09:41:20 +10:00
Oliver Walters 047d2f2f4c Include part revision in stock API / table 2019-06-28 09:35:29 +10:00
Oliver Walters 16b6ae8d61 Fixed up some stupid recursion on the Tree model template 2019-06-18 00:59:54 +10:00
Oliver Walters f731c45ce8 Replace other choice fields with commonized status code 2019-06-04 23:38:52 +10:00
Oliver Walters fd2e2a71f9 Add search results for part-category and stock-location 2019-06-02 19:15:05 +10:00
Oliver Walters 013a85e6f7 Better dispaly of stock status
- Send status text in JSON
- Only display status if it is not "OK"
2019-06-02 13:53:11 +10:00
Oliver Walters 802ff35cf3 Remove some now unused forms / views / etc 2019-06-02 12:45:44 +10:00
Oliver Walters 6a30485a4e Initial work toward fixing stock issues 2019-05-29 01:03:21 +10:00
Oliver Walters 1232a6cf17 PEP fixes 2019-05-28 22:01:52 +10:00
Oliver Walters 8c583750a2 Update the stock list API
- Custom data serialization is MUCH faster (~400ms compared to 3s)
- Cache location queries
- Flatten related field data
- Update stock table javascript to match
2019-05-28 21:45:27 +10:00
Oliver Walters 64403f824a And deltaco some code that went along with it 2019-05-27 22:46:17 +10:00
Oliver Walters 5a9c19492b Design an aggregation filter for stock items
- If 'aggregate=1' is sent to the stock API, aggregate the returned stock items by part and location
- Suprisingly this actually works right out of the gate
2019-05-27 22:44:13 +10:00
Oliver Walters 6603d6e9ed PEP fixes 2019-05-26 00:22:05 +10:00
Oliver Walters c45a506a10 Rename field part.has_variants to part.is_template 2019-05-25 23:58:31 +10:00
Oliver Walters 75d38489d7 Add ability to filter stock by variants for a templated part 2019-05-25 23:26:46 +10:00
Oliver Walters 5664fc5472 Detail in StockItem API now optional 2019-05-23 22:57:45 +10:00
Oliver Walters fc75ab7420 Reduce response time for stock list
Initial time - 6.2s
After prefetch - 4.3s
2019-05-20 08:44:52 +10:00
Oliver Walters 1b06cd23af Add 'stock' tab for supplier page 2019-05-16 21:16:19 +10:00
Oliver Walters c1224048ad Add ability to filter stock by supplier 2019-05-16 21:01:34 +10:00
Oliver Walters b4df96aaee Simplify extended filters 2019-05-16 19:14:43 +10:00
Oliver Walters e1558a7a96 Add ability to filter stock items by part category
- Using the REST API
- Add &category=x to the query string
- Add &include_child_categories to include child categories
2019-05-16 18:54:14 +10:00
Oliver Walters b73583be40 Make the 'quantity' field optional in the stock move API
If not specified, the entire quantity will be moved
2019-05-11 09:02:30 +10:00
Oliver Walters 271c684b22 Making the frog happy 2019-05-11 00:43:02 +10:00
Oliver Walters 97b9cac205 Successfully move multiple parts with partial quantities 2019-05-11 00:42:24 +10:00
Oliver Walters 6561a613d7 Add extra validation step 2019-05-11 00:07:21 +10:00
Oliver Walters 8d5c4c521c Pass stock move quantity through per item 2019-05-11 00:04:45 +10:00