Oliver
919f182c25
Remove debug messages
2021-11-10 11:30:11 +11:00
Oliver
738ba4eddf
Data migration to initially update serial number fields for all stock items
...
- Also automatically updates serial_int field when saving StockItem
2021-11-10 10:59:48 +11:00
Oliver
257be18d79
Add 'serial_int' field to stockitem model
...
- Allows for integer sorting of stock items
2021-11-10 10:47:17 +11:00
Oliver
f27acde934
More fixes
...
- Allow stock item creation for inactive parts
- Better handling of successful stock item creation
- Disable fields rather than hiding them
2021-11-05 00:02:55 +11:00
Oliver
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
Matthias
3c6c9c59d6
added clean migration steps for all price fields
2021-07-01 07:11:15 +02:00
Oliver
c62ba5eb12
Perform a "full_clean" on serialized model
...
- DRF does not by deault run validate_unique on the model
- Need to check if we are "creating" or "updating" a model
- Catch and re-throw errors in the correct format
- Unit tests
2021-06-22 10:09:19 +10:00
Oliver
02540edd58
Copy purchase price information across in the data migration
2021-06-21 20:30:15 +10:00
Oliver
ff33cc43bd
Create initial migration file
2021-06-21 17:28:41 +10:00
Oliver Walters
68b53acbf1
remove old fields from the StockItemTracking model
2021-05-12 08:07:03 +10:00
Oliver Walters
93e6eb6dc7
Unit test fixes
2021-05-11 22:26:03 +10:00
Oliver Walters
385131137f
Extract stock location from legacy stocktracking entry
...
- Not 100% accurate - e.g. if the stock location has been altered!
2021-05-11 20:55:14 +10:00
Oliver Walters
ed4da4d338
Improve introspection in migration file
2021-05-11 18:23:29 +10:00
Oliver Walters
725a64c29d
Extract more information from legacy tracking data
2021-05-11 18:11:27 +10:00
Oliver Walters
1126e2e110
"Guess" stock history code from recorded title string
2021-05-11 17:41:37 +10:00
Oliver Walters
af53b341f0
Replace "addTrasactionNote" function with "add_tracking_entry"
...
- Does not add translated strings to the database
2021-05-11 17:17:48 +10:00
Matthias
20c455384e
added more translation-strings
2021-04-04 22:44:14 +02:00
Matthias
c68220a597
migrations for all the translated models, totally forgot that
2021-04-03 14:11:28 +02:00
Oliver Walters
556d6455e8
Add "packaging" field for StockItem
2021-02-19 11:08:58 +11:00
Oliver Walters
74704a7c1e
Mark migrations with data operations "non atomic"
...
Ref: https://docs.djangoproject.com/en/dev/howto/writing-migrations/#non-atomic-migrations
2021-02-04 22:19:15 +11:00
eeintech
e92e5dfe8f
Merged master
2021-01-13 17:08:01 -05:00
eeintech
28fb1b5fab
Added owner model to admin page and added test cases
2021-01-13 11:38:37 -05:00
eeintech
6f3cbb4e14
Switched to global owner model, need to validate use-cases table and fix tests
2021-01-11 17:41:29 -05:00
eeintech
6a88bdb37d
StockLocation owner is now a GenericForeignKey that can be set to user or group models
2021-01-11 12:56:40 -05:00
eeintech
67bc86c159
Updated stock owners migration file
2021-01-07 14:05:43 -05:00
eeintech
f26f1c38a2
Merged master
2021-01-07 13:50:29 -05:00
Oliver Walters
07cda765f0
Add "expiry_date" field to StockItem model
...
- Also adds "is_expired" function
2021-01-03 23:56:35 +11:00
eeintech
c9b3c16c6f
Added help text on owner fields
2020-12-01 17:46:11 -05:00
eeintech
e1fb7e5d98
Added owner field to both stock item and location tables and forms
2020-12-01 13:45:01 -05:00
Oliver Walters
6144d7e209
Fix for StockItem creation form
...
- purchase_price field was required (should not be!)
- Fixed some validation issues
- Cleaned up form implementation
2020-11-17 15:29:44 +11:00
Oliver Walters
e4f2eecb3b
Remove defunct 'build_order' field from StockItem model
...
- This is now handled by the new-and-improved build system, no longer required
2020-11-10 20:12:39 +11:00
Oliver Walters
734436b02e
Add integration of django-money
...
- Proper currency support
- Add PurchasePrice field to StockItem model
- This keeps track of both the price and the currency
- Display purchase price on the stockitem detail page
2020-11-10 16:22:42 +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
97b35d9269
Renamed related name "owned_parts" to "installed_parts"
2020-09-28 19:33:32 +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
8d9cfd3678
Migration file for StockStatus codes
2020-08-08 09:44:21 +10:00
Oliver Walters
16d261d956
Make description fields optional
2020-06-05 19:33:32 +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
e63342418f
Improve / simplify logic for file attachments against test result object
2020-05-23 11:30:42 +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
30b5f7d507
Drag and drop for order attachments
2020-05-13 11:28:45 +10:00
Oliver Walters
5d716d0cdd
Add "upload date" field to fileattachment base class
2020-05-12 20:57:41 +10:00
Oliver Walters
d4fa7d936e
Add 'user' field to attachment
2020-05-12 20:50:03 +10:00
Oliver Walters
64f6238351
Add StockItemAttachment model
2020-05-07 09:39:28 +10:00
Oliver Walters
29335fa665
Add "rejected" status code for StockItem
2020-05-03 09:09:17 +10:00
Oliver Walters
e768ada83b
More work
...
- Consolidated "in_stock" filter to single code location
- Improve 'limit_choices_to' for BuildItem and SalesOrderAllocation
- Various template improvements etc
2020-04-26 16:38:29 +10:00