Oliver Walters
b351976ae9
Mark a SalesOrder as "shipped"
...
- Option to hide non-stock items from stock list
- Update models with new feature
2020-04-25 08:46:28 +10:00
Oliver Walters
d9698b10cc
PEP fixes
2020-04-22 13:21:45 +10:00
Oliver Walters
1373425c29
Update definition for StockItemAllocation model
...
- Limit foreignkey choices
- Error checking
- Check if a StockItem is over-allocated
- Fix API serialization and filtering
2020-04-22 13:11:19 +10:00
Oliver Walters
6dd79af0b6
Expose "is_allocated" parameter on StockItem API
2020-04-22 10:11:40 +10:00
Oliver Walters
2c6e8da90e
Ability to filter StockItemList API by sales_order or sales_order_line
2020-04-21 17:33:02 +10:00
Oliver Walters
4ec5e9a907
Consolidate StockItem serializer
2020-04-20 08:24:43 +10:00
Oliver Walters
b2c40c91b7
PEP fixes
2020-04-20 01:11:25 +10:00
Oliver Walters
6a89e0089d
Updates for stock serializer
2020-04-20 00:49:13 +10:00
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 1b1cd944be274e48bdd6daa4f57b196ff051508e)
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