Oliver Walters
3715c5d637
Set the parent relationship when serializing StockItem object
...
- Keep track of which StockItem is came from
2020-02-17 22:44:41 +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
4f266958e3
Add custom migration
...
- Required to initialize the MPTT fields for the StockItem model
2020-02-17 22:11:44 +11:00
Oliver Walters
750dfcda07
Add 'parent' field for StockItem
...
- Allows StockItem to be tracked when it is split into multiple items
- Uses MPTT field
2020-02-17 21:52:31 +11:00
Oliver Walters
33d21594da
Create new stock item from supplierpart stock page
...
- Allow stock-item-create form to have supplierpart passed as initial data
- Add some translations too
2020-02-12 11:32:01 +11:00
Oliver Walters
6d80788618
Allow stock-filtering and export using SupplierPart ID
2020-02-12 11:16:00 +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 Walters
265ed5115a
Float parsing on StockItem tracking page
2020-02-12 08:19:08 +11:00
Oliver Walters
4bd4f2a0a3
Fix for bug b)
...
- Don't attempt to save if there are duplicates
- Fix overwritten variable name
- Provide correct return data to the form
2020-02-06 23:22:55 +11:00
Oliver Walters
2949289fab
Fix for bug a)
...
- Would not create new StockItem for trackable part if Serial Numbers not provided
2020-02-06 23:11:47 +11:00
Oliver Walters
5264f816f1
Allow PartCategory and StocKLocation names to be non-unique
...
- As long as they are unique in the current tree level
2020-02-02 21:40:03 +11:00
Oliver Walters
1a32e441b7
Add //TODO entry in stock tabs
2020-02-02 12:42:35 +11:00
Oliver Walters
1bdcbd1974
Markdownify the 'notes' field for StockItem
...
- New tab interface for the StockItem page
- Display / editing of notes field with markdown
2020-02-02 12:11:18 +11:00
Oliver Walters
b3ec748123
Display current stock item quantity in stock-adjust modal form
2020-01-06 08:52:28 +11:00
Oliver Walters
dbdbe69f7f
Bug fix for test cases
2019-11-19 10:19:52 +11:00
Oliver Walters
9da8189899
Allow non-integer stock movement
2019-11-19 10:17:20 +11:00
Oliver Walters
e4bfe43c04
More rendering improvements
2019-11-19 10:10:23 +11:00
Oliver Walters
003a2d9f3c
Allow creation of stockitem with non-integer quantity
...
- Also provided more translation strings
2019-11-19 10:00:08 +11:00
Oliver Walters
75774771dc
Changes to StockItem model
...
- Stock adjustments need to accept decimal values
2019-11-19 09:18:41 +11:00
Oliver Walters
20755a6dac
Rendering of decimal value on stockitem page
2019-11-19 09:10:47 +11:00
Oliver Walters
6e90ac367e
Massaging unit tests
...
- Decimal fields are useful but VERY ANNOYING to use
- Needed to fix some test cases
2019-11-19 08:59:56 +11:00
Oliver Walters
400941c10f
Change item quantity field from PositiveInteger to Decimal
...
- Allow 'partial' quantity e.g. '0.45kg'
- Need to change some maths functions as Decimal type is pernickity
2019-11-19 08:49:54 +11:00
Oliver Walters
81a226c760
Added translation strings for stock.models
2019-11-19 08:46:25 +11:00
Oliver Walters
16f3dfb678
Removed old migration file
2019-11-16 20:39:10 +11:00
Oliver Walters
b7473be8ef
Update stock adjustment dialog
2019-11-16 20:29:05 +11:00
Oliver Walters
2261973331
Ability to delete multiple stock items
2019-11-16 20:19:10 +11:00
Oliver Walters
789515e39d
Add translations for the StockItem detail page
2019-11-16 20:14:08 +11:00
Oliver Walters
0effb584b9
Remove 'active' field
...
- Will work this change in at a later date
2019-11-16 20:13:51 +11:00
Oliver Walters
339126b27a
Add new field "active" to StockItem model
...
- True by default
- Set to 'false' to mark a stockitem as 'deleted'
2019-11-16 19:41:36 +11:00
Oliver Walters
3e2a5263a5
Add stock information for top-level stock page
2019-09-27 09:59:14 +10:00
Oliver Walters
7c1615a2b6
Fix user recording when serializing stock
2019-09-24 07:59:59 +10:00
Oliver Walters
41c07fc423
Save user who created a stock item
...
- Handled differently for batch or serialized parts
2019-09-24 07:54:18 +10:00
Oliver Walters
6f54091354
Improve display of stock location
2019-09-20 00:03:59 +10:00
Oliver Walters
b3ea2bfb9a
Update badges
2019-09-19 23:38:15 +10:00
Oliver Walters
3c98cd87a7
Use localStorage rather than sessionStorage for storing user prefs
...
- Also create some helper functions
2019-09-19 23:29:03 +10:00
Oliver Walters
cb77506111
Simplify
2019-09-17 20:19:05 +10:00
Oliver Walters
4a0be0dfb8
Simplify
2019-09-17 20:15:50 +10:00
Oliver Walters
194ae49914
Export full_name for parts
2019-09-15 22:23:34 +10:00
Oliver Walters
204cd967aa
Include status label text when exporting stocktake data
2019-09-15 20:14:27 +10:00
Oliver Walters
03043e67c7
Perform full validation when importing data
2019-09-15 19:58:05 +10:00
Oliver Walters
9c84e9076f
Consolidate stock export code
...
- Now defined in stock.admin as StockItemResource
- Much more control over format of exported data
- Exported data can be re-imported!
2019-09-15 19:29:18 +10:00
Oliver Walters
70e07470db
Custom URL validators for more fields
2019-09-14 00:08:49 +10:00
Oliver Walters
8578a3b8d1
Add searching to other admin views
2019-09-13 23:32:49 +10:00
Oliver Walters
cb5db332d3
Manager for import/export of StockItem data
2019-09-13 23:00:21 +10:00
Oliver Walters
23b814569a
Manager for importing StockLocation data
2019-09-13 22:44:50 +10:00
Oliver Walters
53c5324df6
Fix uniqueness test for stock item
2019-09-09 08:49:27 +10:00
Oliver Walters
108382cc89
Prefecth related data for stock export
...
- Example export reduced from 1,024 queries to 7
2019-09-09 08:17:26 +10:00
Oliver Walters
11c946be4d
Export human-readable status code
2019-09-09 00:02:08 +10:00
Oliver Walters
231a669fe5
Export stock based on supplier
2019-09-08 23:53:09 +10:00
Oliver Walters
3d5542181a
Move "Export" button onto stock table
2019-09-08 23:40:51 +10:00