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
Oliver Walters
03b7e3a815
Add view / template to delete a build
2019-08-15 19:34:55 +10:00
Oliver Walters
d9e5bfd971
Use button row rather than drop-down for build display
2019-08-15 19:26:13 +10:00
Oliver Walters
9e5eadd6c3
Set serial numbers when creating a new stock item
2019-07-23 10:31:34 +10:00
Oliver Walters
23d03d6b9b
Build completion now handles unique serial numbers
...
Provide a method to test if a serial number matches for a given part
2019-07-22 15:55:36 +10:00
Oliver Walters
9a8e4d25d2
Input serial numbers when creating a new build
2019-07-22 13:45:09 +10:00
Oliver Walters
20ec36d3ea
Enforce authentication for API access
2019-07-08 19:20:00 +10:00
Oliver Walters
776ca7db12
Visual style for build
2019-06-19 08:03:39 +10:00
Oliver Walters
008a55d3d7
Squashed a bug
2019-06-17 23:02:44 +10:00
Oliver Walters
760d08608f
Minor test addition for builds
2019-06-17 22:41:44 +10:00
Oliver Walters
73b9881dc5
Improve table rendering for build allocation view
2019-06-13 22:18:27 +10:00
Oliver Walters
a37a2120fa
Add some context data to build views
2019-06-13 21:32:37 +10:00
Oliver Walters
2b74a0ed2c
Don't show zero-quantity items when ordering against a build
2019-06-13 21:28:01 +10:00
Oliver Walters
b138a4bd5f
Order parts directly from a build
2019-06-12 00:21:18 +10:00
Oliver Walters
ad5c6630bd
Bug fix in Build.completeBuild
2019-06-06 10:43:34 +10:00
Oliver Walters
e199ed2281
PEP fixes
2019-06-05 00:21:19 +10:00
Oliver Walters
a9ba419503
Fix testing code
2019-06-05 00:00:05 +10:00
Oliver Walters
4f1acddb5d
Fix some build status code thingies
2019-06-04 23:42:48 +10:00
Oliver Walters
f731c45ce8
Replace other choice fields with commonized status code
2019-06-04 23:38:52 +10:00
Oliver Walters
d840b44f7a
Create initial models for 'Order'
...
- PurchaseOrder
- PurchaseOrderLineItem
(These are based on some abstract model classes)
2019-06-04 22:19:04 +10:00
Oliver Walters
60f5160d24
Show total stock rather than taking allocation into account
2019-06-03 22:04:48 +10:00
Oliver Walters
782ad57f52
Re-enable image hovering where appropriate
2019-06-03 22:03:22 +10:00
Oliver Walters
8e0e2979b5
Rename parts tab in build view
2019-06-03 22:01:23 +10:00
Oliver Walters
68e4adda48
Simplified build allocation view
2019-06-03 21:59:15 +10:00
Oliver Walters
7a3b186a0c
Fix double loading of modals.html
2019-06-03 21:51:59 +10:00
Oliver Walters
7a244f48ae
Solve weird collapse bug
...
- HTML is so gross
- Disable image hover seems to work...
2019-06-03 21:35:40 +10:00
Oliver Walters
bb5ed0b9fe
Fix bug for BuildItem with no part image
...
- Can't request a field what don't exist
2019-06-03 21:25:37 +10:00
Oliver Walters
0b88953706
Form field rearrangement
2019-06-02 20:07:30 +10:00
Oliver Walters
8214aef0db
Add template for hover_image
2019-06-01 21:13:51 +10:00
Oliver Walters
a305301b95
Switch between display and edit mode for build allocations
2019-05-27 08:07:38 +10:00
Oliver Walters
c45a506a10
Rename field part.has_variants to part.is_template
2019-05-25 23:58:31 +10:00
Oliver Walters
c3d75deb16
More 'limit_choices_to' limitations for template parts
2019-05-25 23:55:16 +10:00
Oliver Walters
9f4105e2e4
PEP fix
2019-05-25 22:02:36 +10:00
Oliver Walters
2760efac18
Fix similar error for Build object
2019-05-25 22:01:30 +10:00
Oliver Walters
a6f95c70aa
Add detail view for Build model
2019-05-23 21:36:54 +10:00
Oliver Walters
72aba30e81
More hungry fetching
2019-05-21 00:16:00 +10:00
Oliver Walters
4bde00d925
AND AGAIN
...
Use --fake to force the migration
2019-05-20 22:24:18 +10:00
Oliver Walters
70be052c74
Rebuilt migrations again (arrrrrrrrrrrrrrrrrrrrrrrrrrgh never do this)
2019-05-20 21:45:37 +10:00
Oliver Walters
9ddedc6915
Restart migrations
...
- Easier to delete all the migrations and start again :'(
2019-05-19 00:11:41 +10:00
Oliver Walters
b64a29b897
Display build pricing information
2019-05-18 23:09:00 +10:00
Oliver Walters
a2dbdfe794
Remove 'single_price' field from supplier part
...
- Instead we will rely entirely on the SupplierPriceBreak model
2019-05-18 23:07:58 +10:00
Oliver Walters
001dacc14e
Display 'no stock available' warning
2019-05-18 13:24:15 +10:00
Oliver Walters
04420b7f6b
Improve display of allocation page
2019-05-18 13:06:19 +10:00
Oliver Walters
a95e77c429
Pre-fill allocation count
2019-05-18 12:17:57 +10:00
Oliver Walters
0ce5240361
More UI stuff for the Build page
2019-05-17 16:35:23 +10:00
Oliver Walters
3a3662ae14
Add part image
2019-05-17 00:31:35 +10:00
Oliver Walters
489d5de9c4
UI tweaks
2019-05-17 00:23:08 +10:00
Oliver Walters
2da3a022bf
Add allocation tab
2019-05-17 00:20:48 +10:00
Oliver Walters
bf987f23f3
Add 'tabbed' page set for Build app
2019-05-17 00:14:29 +10:00
Oliver Walters
387711a9a1
Fix help string
2019-05-16 18:08:37 +10:00
Oliver Walters
8c92c2c2a1
Display overage values in BOM table
2019-05-15 07:23:02 +10:00
Oliver Walters
58cc1cda77
Only load api.js once
2019-05-14 23:43:16 +10:00
Oliver Walters
2164cac28a
PEP
2019-05-14 18:32:20 +10:00
Oliver Walters
46ab6e40eb
Bug fix for build allocation
...
- If the part did not have an image file the template failed to render
2019-05-14 18:31:19 +10:00