Oliver Walters
|
48e050d317
|
Add some more unit tests and validation code for the StockItem model
- Ensure that the build part matches the stockitem part!
|
2020-10-05 00:49:00 +11:00 |
|
Oliver Walters
|
fe3a72c6cc
|
Add some unit testing
|
2020-10-05 00:29:06 +11:00 |
|
Oliver Walters
|
26d113e8ad
|
Update IN_STOCK_FILTER to reject stock items which have is_building set to True
|
2020-10-05 00:14:04 +11:00 |
|
Oliver Walters
|
ee28b4eea5
|
Add "is_building" field to StockItem model
- This will be set to TRUE until a stock item has been completed
|
2020-10-05 00:12:42 +11:00 |
|
Oliver Walters
|
b9291c6705
|
Improve transaction note recording for the StockItem model
|
2020-10-04 23:33:43 +11:00 |
|
Oliver Walters
|
9c27680202
|
Finish function to install stock item(s)
|
2020-10-04 21:32:21 +11:00 |
|
Oliver Walters
|
a686500df1
|
Calculate initial values for the view
|
2020-10-04 21:02:20 +11:00 |
|
Oliver Walters
|
b2b22762ef
|
style fixes
|
2020-09-28 22:01:45 +10:00 |
|
Oliver Walters
|
df8d1fb32b
|
Add functions to install and uninstall stock items
|
2020-09-28 21:52:23 +10:00 |
|
Oliver Walters
|
97b35d9269
|
Renamed related name "owned_parts" to "installed_parts"
|
2020-09-28 19:33:32 +10:00 |
|
Oliver Walters
|
b76e6a5023
|
Bugfix: Test result ordering was reversed!
|
2020-09-28 09:02:17 +10:00 |
|
Ben Charlton
|
f7ed48809c
|
Support non-integer serial numbers
|
2020-08-21 17:36:49 +01:00 |
|
Oliver Walters
|
90d34cdfcf
|
StockItem: Allow customer field to be blank
|
2020-08-20 14:54:55 +10:00 |
|
Oliver Walters
|
a4267f76e8
|
Fixes for barcode data rendering
|
2020-08-16 13:39:05 +10:00 |
|
Oliver Walters
|
2bbc65cc59
|
Add "brief" version of QR codes
- Use this to render to labels (as it contains much less information)
|
2020-08-16 13:29:38 +10:00 |
|
Oliver Walters
|
18b3fd3256
|
Add context data to StockItemLabel model
|
2020-08-16 10:24:15 +10:00 |
|
Oliver Walters
|
ff71fe6e93
|
Fix "in_stock" logic for StockItem
- Not in stock if it is at a customer!
|
2020-08-08 09:20:42 +10:00 |
|
Oliver Walters
|
861a2982db
|
Removed "SHIPPED" stock status code
|
2020-08-08 09:16:53 +10:00 |
|
Oliver Walters
|
bdea29df04
|
Add functionality to return stock item from customer
|
2020-08-08 09:05:33 +10:00 |
|
Oliver Walters
|
9f599546de
|
Use stock status for determining "in stock"
|
2020-06-05 09:08:46 +10:00 |
|
Oliver Walters
|
ca1526405b
|
PEP fixes
|
2020-06-04 19:51:43 +10:00 |
|
Oliver Walters
|
80019a3ed8
|
Add forms/views for manually assigning a stock item to a customer
|
2020-06-04 19:45:41 +10:00 |
|
Oliver Walters
|
fbd21827fb
|
Add 'customer' field to StockItem
|
2020-06-04 19:08:33 +10:00 |
|
Oliver Walters
|
59d9e430b4
|
Remove unique-together requirement
- This is handled manually via the validate_unique function
|
2020-05-28 20:38:24 +10:00 |
|
Oliver Walters
|
0d052334e2
|
Allow stock items to be created for template parts
|
2020-05-25 14:20:35 +10:00 |
|
Oliver Walters
|
95cc3d2a7a
|
Copy test results when a stock item is split or serialized
|
2020-05-24 21:09:43 +10:00 |
|
Oliver Walters
|
e4d10279fa
|
Include 'key' field in StockItemTestResult serializer
|
2020-05-24 20:04:34 +10:00 |
|
Oliver Walters
|
e63342418f
|
Improve / simplify logic for file attachments against test result object
|
2020-05-23 11:30:42 +10:00 |
|
Oliver Walters
|
4bd0872b2c
|
Expose some more stock item data over API
|
2020-05-22 23:33:27 +10:00 |
|
Oliver Walters
|
e6f56cb056
|
where one or more test report templates exist for a part,
provide a button for all stock-items of that part,
allowing the user to generate and download a test repotr
|
2020-05-22 22:25:05 +10:00 |
|
Oliver Walters
|
b121262af1
|
pep FIX
|
2020-05-19 17:37:00 +10:00 |
|
Oliver Walters
|
9cb039f685
|
Remove a test (for now) which is causing issues...
|
2020-05-19 17:08:19 +10:00 |
|
Oliver Walters
|
1cfe445897
|
PEP fix
|
2020-05-19 16:59:21 +10:00 |
|
Oliver Walters
|
bf296057b3
|
Enable attachments to be uploaded via the API
|
2020-05-19 16:56:41 +10:00 |
|
Oliver Walters
|
fc6cad475a
|
Add validation for StockItemTestResult based on the matching PartTestTemplate
|
2020-05-18 19:11:43 +10:00 |
|
Oliver Walters
|
1cc0977816
|
Display testing status for a stock item
|
2020-05-17 22:33:41 +10:00 |
|
Oliver Walters
|
02b0c0831d
|
Removed test that caused a bug
|
2020-05-17 22:29:07 +10:00 |
|
Oliver Walters
|
6cb017bbfd
|
Add functions to test if a stock item has passed all tests
|
2020-05-17 22:03:55 +10:00 |
|
Oliver Walters
|
f791ac9f57
|
Register test template in the admin interface
|
2020-05-17 13:50:06 +10:00 |
|
Oliver Walters
|
17f241774f
|
Add function to generate "keys" for test results.
- As the keys are to be used for dict-based lookup (in a template) then they cannot contains spaces.
- May as well enforce lower-case encoding!
|
2020-05-17 12:59:03 +10:00 |
|
Oliver Walters
|
d6a56da441
|
PEP fixes
|
2020-05-16 21:15:14 +10:00 |
|
Oliver Walters
|
df91b8cf4d
|
Add function to get all test results as a map
- This will be required for pushing out to a test report
|
2020-05-16 20:45:10 +10:00 |
|
Oliver Walters
|
2bb9fd9955
|
Add some unit testing for the new model
|
2020-05-16 20:27:01 +10:00 |
|
Oliver Walters
|
f39f5e5825
|
Add StockItemTestResult model
|
2020-05-16 19:56:18 +10:00 |
|
Oliver Walters
|
a6ad263ee7
|
Fix clean functions so unit tests pass
|
2020-05-16 17:43:32 +10:00 |
|
Oliver Walters
|
3df8f33080
|
Logic fixes for CreateStockItem form
- Improved data validation
- Fix bug where form was not checked for validity
|
2020-05-16 12:04:53 +10:00 |
|
Oliver Walters
|
3d0bea15ae
|
Refactor function naming
|
2020-05-16 12:03:18 +10:00 |
|
Oliver Walters
|
10762fc1cf
|
Refactor tractor
|
2020-05-16 08:55:19 +10:00 |
|
Oliver Walters
|
ea88a03b5a
|
More serial number validation and unit testing
-
|
2020-05-16 08:43:57 +10:00 |
|
Oliver Walters
|
ea0d32fd3d
|
PEP fixes
|
2020-05-07 09:58:29 +10:00 |
|