Oliver Walters
6a30485a4e
Initial work toward fixing stock issues
2019-05-29 01:03:21 +10:00
Oliver Walters
d512232aac
Readable css
2019-05-29 00:54:00 +10:00
Oliver Walters
ea03205c50
Don't need to detach and re-attach rows any more!!
2019-05-29 00:47:36 +10:00
Oliver Walters
2ccb014d9e
FINALLY sorting is working well
...
- Wrote a custom sorter which takes group rows into account
2019-05-29 00:45:35 +10:00
Oliver Walters
ecde201bb0
Update to newest bootstrap-table script
2019-05-29 00:20:01 +10:00
Oliver Walters
729968e65d
Better message for no stock found
2019-05-28 22:05:30 +10:00
Oliver Walters
8c583750a2
Update the stock list API
...
- Custom data serialization is MUCH faster (~400ms compared to 3s)
- Cache location queries
- Flatten related field data
- Update stock table javascript to match
2019-05-28 21:45:27 +10:00
Oliver Walters
f7d521ca97
Reorder stock table columns
2019-05-28 19:13:46 +10:00
Oliver Walters
7ac52d4d9f
Optionally select which column gets grouped
...
- Allow grouping by numerical values
2019-05-28 19:12:10 +10:00
Oliver Walters
e4acca2951
Display stock item serial number (if it exists)!
2019-05-28 18:29:12 +10:00
Oliver Walters
807798810b
Color sub-group rows slightly differently
2019-05-28 18:17:16 +10:00
Oliver Walters
8255332950
Remove some debug messages
2019-05-28 18:12:47 +10:00
Oliver Walters
4011d66b6f
Display sub-location information
2019-05-28 18:08:50 +10:00
Oliver Walters
7120b940f0
Pre-collapse grouped columns
2019-05-28 17:51:02 +10:00
Oliver Walters
4218cf8b45
Client-side grouping
...
- Cusomizations made to bootstrap-table-group-by.js
- Group by part name
- Display total stock count per group
- Only group if there are more than 1 item in the group
- Groups send checkbox signals through appropriately!
2019-05-28 17:21:29 +10:00
Oliver Walters
d563e873ed
Change some icons
2019-05-26 00:35:52 +10:00
Oliver Walters
21dd893c01
Display templated parts as italic in the part list
2019-05-26 00:29:17 +10:00
Oliver Walters
add601e296
Display supplier part results on search page
2019-05-24 21:34:00 +10:00
Oliver
632be8f04f
Merge pull request #364 from SchrodingersGat/bom-footer
...
Display total part quantity in BOM footer
2019-05-23 23:23:52 +10:00
Oliver Walters
2bf80efc09
Display total part quantity in BOM footer
...
- https://stackoverflow.com/questions/45190917/bootstrap-table-footer-functions-not-working-data-footer-formatter
2019-05-23 23:18:35 +10:00
Oliver Walters
5664fc5472
Detail in StockItem API now optional
2019-05-23 22:57:45 +10:00
Oliver Walters
9052ccc181
Make 'part_detail' field in SupplierPart serializer optional
2019-05-23 22:44:37 +10:00
Oliver Walters
cf5b8d0249
Optional part_detail and sub_part_detail for BOM API
...
- Significant speed boost on request
- Request the relevent information at the right place
2019-05-23 22:36:19 +10:00
Oliver Walters
cd7bc6cce5
Include pricing information in part supplier view
...
Also some CSS tweaks to secondary modal buttons
2019-05-22 22:11:27 +10:00
Oliver Walters
988a35d237
Serialize BOMItem pricing information
...
- Account for quantity
- Prefetch required items
2019-05-21 15:15:54 +10:00
Oliver Walters
d15b09a5f4
Don't serialize pricing
...
- Saves MANY queries and provides drastic speedup
2019-05-20 23:03:19 +10:00
Oliver Walters
dcf79338c1
Add pop-up pricing window for part
...
- Cost to purchase from suppliers
- Cost to build from BOM
2019-05-18 23:09:08 +10:00
Oliver Walters
2b098942b0
Fix pricing bug
...
- Include BOM item pricing in API
2019-05-18 23:08:56 +10:00
Oliver Walters
2a1fd2b03b
More complex pricing calculations
...
- Calculate BOM price for a part
- Calculate total pricing for a part (build or purchase)
- Display pricing information in BOM table
2019-05-18 23:08:51 +10:00
Oliver Walters
5043c354b1
Set default value for SupplierPriceBreak
...
Edit or Delete a SupplierPriceBreak
2019-05-18 23:08:30 +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
34d1ef7d8d
Change label size for build status
2019-05-18 09:44:16 +10:00
Oliver Walters
5ebc7b040a
Show current quantity in stocktake form
2019-05-16 22:23:31 +10:00
Oliver Walters
117fd701cd
Refactor some code
2019-05-16 22:19:49 +10:00
Oliver Walters
b8f5c8cca7
Add confirmation box to stocktake form
2019-05-16 22:12:13 +10:00
Oliver Walters
8c92c2c2a1
Display overage values in BOM table
2019-05-15 07:23:02 +10:00
Oliver Walters
9d50f2a6ac
Toot toot all aboard the refactor tractor
...
- launchModalForm now accepts a 'secondary' parameter which is a list of secondary modals to attach
2019-05-14 23:27:45 +10:00
Oliver Walters
be1b458634
Upon successful creation (in a secondary modal) update the field in the primary modal
2019-05-14 23:04:49 +10:00
Oliver Walters
21c238e96a
Secondary modal is slightly smaller than primary
...
- So that the primary modal is still visible underneath
2019-05-14 22:44:57 +10:00
Oliver Walters
226644e59a
Open a secondary modal over the top of a primary one
2019-05-14 22:37:45 +10:00
Oliver Walters
dc3abec899
Add a secondary modal in modals.html
2019-05-14 22:30:24 +10:00
Oliver Walters
a96cd2240c
Function to insert a 'create new' button into a form
...
- Look for a label like <label for="id_<field>">
2019-05-14 22:12:22 +10:00
Oliver Walters
0cc2e71843
Provide an after_render callback
...
- User callback after the form data are rendered
2019-05-14 19:00:59 +10:00
Oliver Walters
e87f545d75
Render zero stock as 'No Stock' in BOM table
2019-05-14 18:12:17 +10:00
Oliver Walters
7447561f77
Fix link for part stock in BOM table
2019-05-14 17:12:06 +10:00
Oliver Walters
74c8b6768d
BOM table fixes
...
- Reorder columns
- Allow proper part name filtering
2019-05-14 15:43:16 +10:00
Oliver Walters
edc2cc49c2
Fix deletion form for BuildItem
2019-05-13 23:03:32 +10:00
Oliver Walters
06e95819c9
Update form for deleting a BOM item
2019-05-13 23:00:04 +10:00
Oliver Walters
a78106526a
Remove launchDeleteForm JS function
...
- All should be consolidated upon launchModalForm
- StockItem delete now uses this
2019-05-13 22:47:36 +10:00