Oliver Walters
4f0efec39f
PEP and unit testing fixes
2020-04-25 23:24:00 +10:00
Oliver Walters
77361bd0a2
Update templates
2020-04-25 23:20:55 +10:00
Oliver Walters
01a68270ea
Add verbose names for multiple Build model fields
...
- Improve methods for different models
2020-04-25 23:17:07 +10:00
Oliver Walters
181d1d6b91
Factor out function to calculate total allocations
2020-04-25 21:31:58 +10:00
Oliver Walters
912a3c4b99
Update progress bar based on sum of allocated quantities
2020-04-25 21:21:52 +10:00
Oliver Walters
b0891c921c
Working towards better build allocation:
...
- Improve data serialization in API
- Javascript bug fixes
- Load the build allocation table using jQuery
2020-04-25 21:13:38 +10:00
Oliver Walters
c11b433d94
Make Build object into a MPTT tree model
...
- Builds can have child builds
2020-04-25 15:25:17 +10:00
Oliver Walters
2f0bbecc3d
Refactored status code label generation
...
- Larger style available
2020-04-25 15:13:55 +10:00
Oliver Walters
d5f3498238
Add a "sales_order" reference to the Build model
...
- If a build order is made to fulfil a sales order
- Add sales_order filtering to the Build API
- Pass initial information through to the BuildCreate view
2020-04-25 13:15:45 +10:00
Oliver Walters
77471cb89c
Form for shipping a SalesOrder
...
- Returns "False" for now
2020-04-24 10:20:56 +10:00
Oliver Walters
b45fec221c
Expose more status code data to the templates
...
- Status codes are now exposed globally to every page
- Much simplified so wow
- https://stackoverflow.com/questions/3221592/how-to-pass-common-dictionary-data-to-every-page-in-django
2020-04-24 09:27:42 +10:00
Oliver Walters
7f020cbbf6
Enbiggen a whole lotta buttons
2020-04-23 19:41:14 +10:00
Oliver Walters
426aa9258c
URL cleanup
2020-04-23 17:37:53 +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
12daf15406
Update build page
2020-04-22 09:53:11 +10:00
Oliver Walters
f248b20ba4
Fix
2020-04-12 00:33:43 +10:00
Oliver Walters
6ed482d9eb
Update translations
2020-04-12 00:33:10 +10:00
Oliver Walters
fd8273e3e2
Improve build base rendering
...
- Consolidate style
- Fix rendering of part pricing
2020-04-12 00:31:59 +10:00
Oliver Walters
7503596ea4
More fixes
...
- Add a set of template tags for rendering status codes
- Improve build API filtering
- Remove some outdated files
- Fix unit testing
2020-04-12 00:10:33 +10:00
Oliver Walters
5d70f496a5
Ability to filter build list by status
2020-04-11 20:03:31 +10:00
Oliver Walters
f0ffb0f8c0
Ability to include part_detail in build API
...
- Build list now uses bootstrapTable
2020-04-11 19:59:16 +10:00
Oliver Walters
a4e45eab13
Skeleton for AJAXified build table
2020-04-11 19:36:01 +10:00
Oliver Walters
44c10c45cd
visual consolidation
2020-04-06 20:50:33 +10:00
Oliver Walters
789712acbe
Rename Build.URL -> Build.link
2020-04-06 11:28:35 +10:00
Oliver Walters
6fd0380196
Display item overage in the allocation list
2020-03-19 10:16:58 +11:00
Oliver Walters
8eaaf62eda
Limit choices for Part selection
...
Based on is_template / virtual / active status
2020-03-18 21:28:11 +11:00
Oliver Walters
33ffa2f75f
Add option to make stock-table read-only
...
- Default table is not read-only
2020-03-18 20:37:25 +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
5ae7ca71d7
Improve number rendering of build allocation page
2020-02-12 08:12:26 +11:00
Oliver Walters
564635c368
Add some translatable strings
2020-02-12 08:11:59 +11:00
Oliver Walters
cb29ff14e0
Change auto_now field to auto_now_add
...
- Build creation date should no longer get erroneously updated
2020-02-10 21:34:41 +11:00
Oliver Walters
0f92468462
Add icon to signify if notes exist
2020-02-02 11:48:43 +11:00
Oliver Walters
a7846940c4
Markdownify the notes field for Build model
2020-02-02 00:00:19 +11:00
Oliver Walters
a1f33c4084
Change build allocation quantity to decimal field
2019-11-19 10:22:46 +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
0ea8ade26c
Better rendering for build allocation page
...
- Added translations too
2019-11-19 09:51:35 +11:00
Oliver Walters
ae2e2f36e4
Update a bunch more tables
2019-09-22 22:18:53 +10:00
Oliver Walters
2046c12600
Use a jQuerified function
2019-09-22 21:56:57 +10:00
Oliver Walters
628a58e8fc
Show which parts are short in build view
2019-09-16 08:23:40 +10:00
Oliver Walters
fedbb834ee
Add mouse-over text to build-cancel button
2019-09-16 08:17:39 +10:00
Oliver Walters
70e07470db
Custom URL validators for more fields
2019-09-14 00:08:49 +10:00
Oliver Walters
c45c4e236e
Point new stockitem to the correct build
2019-09-01 23:18:28 +10:00
Oliver Walters
86b2b9cdb1
Allow unserialized build
2019-08-29 08:05:45 +10:00
Oliver Walters
9f5325d61f
PEP fixes
2019-08-15 21:50:42 +10:00
Oliver Walters
087492faf8
More build tests
2019-08-15 21:49:40 +10:00
Oliver Walters
cd05ed91aa
More tests for Build API and views
2019-08-15 21:35:16 +10:00
Oliver Walters
62f007529e
Bug fix in build views
...
- Untested code path meant variable was not being set
2019-08-15 21:19:59 +10:00
Oliver Walters
80771beee9
FIxtures for build testing
2019-08-15 21:16:12 +10:00
Oliver Walters
5501fecbc4
PEP
2019-08-15 19:36:03 +10:00
Oliver Walters
b8d7cefa95
Add button to delete a build (only if it has been cancelled)
2019-08-15 19:35:12 +10:00