Oliver Walters
|
29f7b1a32b
|
Revert "More intelligent passing of context data in AjaxView"
This reverts commit fbb9a708f560f841fab50b811ea1b5a32cf20521.
|
2019-05-01 22:52:33 +10:00 |
|
Oliver Walters
|
fbb9a708f5
|
More intelligent passing of context data in AjaxView
- If context is not explicitly supplied, use default get_context_data() function
|
2019-05-01 22:45:41 +10:00 |
|
Oliver Walters
|
7f63a94f15
|
Cancel build function now works
|
2019-05-01 22:22:14 +10:00 |
|
Oliver Walters
|
98109bb1a1
|
Make build allocation much more intuiitive
- Display current allocation + total allocation requirement
- Color code results
- Required custom 'multiply' template tag
|
2019-05-01 22:12:34 +10:00 |
|
Oliver Walters
|
ad1d75c259
|
Improve table formatting when no allocation items found
|
2019-05-01 18:54:54 +10:00 |
|
Oliver Walters
|
7dd960a299
|
PEP fixes
|
2019-05-01 08:19:57 +10:00 |
|
Oliver Walters
|
fc42cca10e
|
Automatically allocate parts when a Build is created
- If there is only one StockItem to choose from, allocate parts from that StockItem
|
2019-05-01 08:08:50 +10:00 |
|
Oliver Walters
|
b6becbc570
|
Rework build allocation
- Each item renders as a collapsible panel with overview data at the top
|
2019-05-01 07:48:46 +10:00 |
|
Oliver Walters
|
7e7ac60a1a
|
Tweaks
- Can't edit build status directly
- Refresh BOM table on reload
- Hide Company tabs that are not yet functional
|
2019-04-30 20:55:28 +10:00 |
|
Oliver Walters
|
fb89574c42
|
Skeleton code for Build cancel() and complete() functions
- BuildComplete view
|
2019-04-30 20:39:01 +10:00 |
|
Oliver Walters
|
d518739643
|
PEP fixes
|
2019-04-30 19:17:54 +10:00 |
|
Oliver Walters
|
efbef251b6
|
Added views / forms to edit and delete BuildItem objects
- Alter stock allocation
- remove (unallocate) stock from a build
|
2019-04-30 18:51:05 +10:00 |
|
Oliver Walters
|
24ed6f393b
|
When adding new item allocations, filter the available stock items
- Must match the appropriate part
- Remove items that are already allocated
|
2019-04-30 16:38:09 +10:00 |
|
Oliver Walters
|
6961d1ec68
|
Catch BuildItem errors in clean()
|
2019-04-30 16:35:55 +10:00 |
|
Oliver Walters
|
fbd5a2a270
|
Register BuildItem in admin interface
|
2019-04-30 16:35:40 +10:00 |
|
Oliver Walters
|
db5521f02e
|
Limit available choicse in form
- Only allow selection of StockItem which matches the correct part
|
2019-04-30 15:48:26 +10:00 |
|
Oliver Walters
|
0208c6efe6
|
New Form and View to create a new BuildItem object
- Allocates stock to a build
|
2019-04-30 15:35:35 +10:00 |
|
Oliver Walters
|
aa491e336d
|
Move javascript for Build allocation to build.js
|
2019-04-30 14:42:48 +10:00 |
|
Oliver Walters
|
a3d4c81939
|
Display and edit build URL field
|
2019-04-30 14:04:43 +10:00 |
|
Oliver Walters
|
395db4df38
|
Pepe fixes
|
2019-04-30 00:18:58 +10:00 |
|
Oliver Walters
|
5c5411132a
|
First pass at build allocation table
- Uses bootstrap-table "detailView" function
|
2019-04-29 23:56:02 +10:00 |
|
Oliver Walters
|
192f604b76
|
Override get_queryset for BuildItem API view
- Special management to allow filtering by part
|
2019-04-29 23:45:05 +10:00 |
|
Oliver Walters
|
c29827e45a
|
Add API endpoint and serializer for BuildItem model
|
2019-04-29 22:59:42 +10:00 |
|
Oliver Walters
|
17d9d25fb9
|
Require Build and StockItem to be unique_together in BuildItem class
|
2019-04-29 22:56:40 +10:00 |
|
Oliver Walters
|
f42116c0d9
|
Renamed 'stock' to 'stock_item'
|
2019-04-29 22:33:39 +10:00 |
|
Oliver Walters
|
e25579141e
|
Rename BuildItemAllocation to BuildItem
|
2019-04-29 22:30:21 +10:00 |
|
Oliver Walters
|
989611cae2
|
Added BuildItemAllocation Model
- Used to link stock items to a build
|
2019-04-29 22:19:13 +10:00 |
|
Oliver Walters
|
a9fbbc3a37
|
Remove references to get_object_or_404
- Properly handle DoesNotExist errors
|
2019-04-28 11:09:19 +10:00 |
|
Oliver Walters
|
d55ea1a982
|
PEP fixes
|
2019-04-28 01:09:48 +10:00 |
|
Oliver Walters
|
aa04941bf1
|
Add module-level docstrings for each app
|
2019-04-28 01:05:45 +10:00 |
|
Oliver Walters
|
a499fd325e
|
Docstring for Stock app
|
2019-04-27 22:49:16 +10:00 |
|
Oliver Walters
|
ed3ae30248
|
Documentation for Part app
|
2019-04-27 22:18:07 +10:00 |
|
Oliver Walters
|
c3f0570926
|
Add docstring to Company app
|
2019-04-27 20:43:27 +10:00 |
|
Oliver Walters
|
d9169a0dd1
|
Add docstrings for Build app
|
2019-04-27 20:35:14 +10:00 |
|
Oliver Walters
|
7b68310d73
|
PEP fixes
|
2019-04-25 03:20:25 +10:00 |
|
Oliver Walters
|
5098712d9c
|
Use reverse to get Build URL
- Add test cases to Build
|
2019-04-24 23:47:39 +10:00 |
|
Oliver Walters
|
0654fa7cc9
|
Deleted unused forms in Build
- These now use modal forms
- Removed redundant templates
|
2019-04-18 23:35:06 +10:00 |
|
Oliver Walters
|
ebcbf9a90e
|
Add status_text to API
|
2019-04-17 23:33:19 +10:00 |
|
Oliver Walters
|
01bdf2f19b
|
PEP fixes
|
2019-04-16 22:32:43 +10:00 |
|
Oliver Walters
|
29f33a8eec
|
Move button locations into bootstrap-table headers
- part category
- stock location
- build list
- company list
- supplier part list
|
2019-04-16 11:46:07 +10:00 |
|
Oliver Walters
|
338a30b50e
|
API endpoint for build list
- Changed part/build table to bootstrap table (ajax)
|
2019-04-16 08:31:43 +10:00 |
|
Oliver Walters
|
b9f23554a5
|
PEP fixes for /build
|
2019-04-14 09:29:05 +10:00 |
|
Oliver Walters
|
e6e03963c4
|
Simplified custom button text for modal forms
- Now only configured from the javascript end
- No server-side configuration of button text
|
2019-04-13 23:02:23 +10:00 |
|
Oliver Walters
|
c67dc6f56e
|
Initial updates required to run under django 2.2
- Change to middleware.py
- Change some URLs formatting
- Fix django version at 2.2
|
2019-04-12 20:44:22 +10:00 |
|
Oliver
|
ceea053368
|
Added part API
- Build allocation table now makes use of this API
- Further steps towards allocation table
|
2018-05-12 12:44:29 +10:00 |
|
Oliver
|
07f16d8891
|
Small improvements for build display
Working toward build management
|
2018-05-09 22:02:56 +10:00 |
|
Oliver
|
3f1c6e2059
|
Simplified modal calls
- Default modal target supplied (can be overridden in options)
|
2018-05-08 19:55:39 +10:00 |
|
Oliver
|
c5155d5ac7
|
Move modal JS file
- Loaded by base.
|
2018-05-08 19:40:29 +10:00 |
|
Oliver
|
a1eeeab64c
|
Build table now bootstrap-table'd
|
2018-05-04 01:39:20 +10:00 |
|
Oliver
|
211edb23bb
|
Removed footable
- Now using bootstrap-table
|
2018-05-02 22:22:43 +10:00 |
|