Commit Graph

207 Commits

Author SHA1 Message Date
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
Oliver Walters 2408318eae Add new view to duplicate a part
- Allows 'deep_copy' (copies all BOM items for the duplicated part)
2019-05-13 21:41:32 +10:00
Oliver Walters fa7555e34b Fix part name display 2019-05-13 18:56:51 +10:00
Oliver Walters d17e36b9f9 Add BOM checksum info panels to the BOM view 2019-05-12 13:24:58 +10:00
Oliver Walters 9149619f38 Make BOM tab badge red if the BOM is not validated 2019-05-12 13:12:04 +10:00
Oliver Walters 1d36ea3e2e Add a 'full_name' field for Part
- Combines IPN | Name | Variant
- Use this to display in most views
2019-05-12 12:16:04 +10:00
Oliver Walters d9c0d2f5e3 Update PartCreate form
- Display list of close matches
- Invalidate form (for now)
2019-05-11 11:55:17 +10:00
Oliver Walters 8d5c4c521c Pass stock move quantity through per item 2019-05-11 00:04:45 +10:00
Oliver Walters 99c0921113 Add quantity selector to 'move items' modal form 2019-05-10 23:51:26 +10:00
Oliver 9ba91a9d80
Merge pull request #299 from SchrodingersGat/part-revision
Part revision
2019-05-10 23:26:28 +10:00
Oliver Walters 6c394728cd Modal dropdowns now implement a partial-match search
- SO MUCH BETTER ZOMG
- https://select2.org/searching
2019-05-10 23:06:38 +10:00
Oliver Walters f76f1f54ae Add 'variant' field to Part model
- Display 'long_name' which is concatenation of name and variant
2019-05-10 22:17:13 +10:00
Oliver Walters 932c07287b Button fixes 2019-05-10 08:38:50 +10:00
Oliver Walters b377efbbec Replaced button text with icons 2019-05-10 08:36:08 +10:00
Oliver 793b4f8063
Merge pull request #288 from SchrodingersGat/tree-badges
Tree badges
2019-05-09 23:06:32 +10:00
Oliver Walters d04f38c724 Improve CSS for main page
- Breadcrumb now appears above sidenav tree
- Better margin / etc
2019-05-09 22:23:43 +10:00
Oliver Walters bff0f30b13 Save tree state 'per tree'
- Separate save state for Part and Stock tree
2019-05-09 21:41:44 +10:00
Oliver Walters 45223fb607 Display count badges in sidenav tree
Uses the 'tags' parameter as according to the docs - https://github.com/jonmiles/bootstrap-treeview

- Part
- Stock
2019-05-09 20:30:23 +10:00
Oliver Walters d891c8d7ea Enable 'Submit' button for Move Stock form 2019-05-09 18:32:30 +10:00
Oliver Walters 873bd182f0 Vertical alignment of button toolbars 2019-05-09 18:04:42 +10:00
Oliver Walters 37405f4ec8 Align navigation bar with rest of content 2019-05-09 18:01:45 +10:00
Oliver Walters 4f56abf312 Fix scaling for thumbnail icons 2019-05-09 17:49:41 +10:00
Oliver Walters 6c4b5731db Reduce padding 2019-05-09 17:49:05 +10:00
Oliver Walters 9fc6268558 Increase size of part image display 2019-05-09 17:47:38 +10:00
Oliver b41ff3c42a
Merge pull request #266 from SchrodingersGat/side-bar-improvements
Side bar improvements
2019-05-09 00:43:57 +10:00
Oliver Walters 4c4df194fa BOM table improvements
- Add part image
- Replace button text with icons
- Fix bug in BOM download
2019-05-09 00:29:16 +10:00
Oliver Walters cc7fb31d6d Save and recall expansion state of tree
- Save choices to sessionStorage
2019-05-09 00:15:43 +10:00