Oliver Walters
292e29e95e
Add some more secondary modals
2019-05-15 07:50:54 +10:00
Oliver Walters
f979edef8e
Prevent double loading of stock.js
2019-05-14 23:47:15 +10:00
Oliver Walters
58cc1cda77
Only load api.js once
2019-05-14 23:43:16 +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
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
d679ee9971
Update form for deleting stock location
2019-05-13 22:58:42 +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
150c68e65b
Bug fix
...
- Turns out 'item_count' was actually used for something (that I wrote... recently...)
2019-05-13 18:52:54 +10:00
Oliver Walters
b7d3bbd836
PEP
2019-05-13 18:46:48 +10:00
Oliver Walters
0813f8cbd5
More test coverage for Stock
2019-05-13 18:45:52 +10:00
Oliver Walters
f410957d8d
Refactored Stock test to use fixtures
2019-05-12 21:46:38 +10:00
Oliver Walters
25e41b3fa2
Allow null values for StockItem.updated
...
- Just to make the tests run better
2019-05-12 21:20:43 +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
b73583be40
Make the 'quantity' field optional in the stock move API
...
If not specified, the entire quantity will be moved
2019-05-11 09:02:30 +10:00
Oliver Walters
271c684b22
Making the frog happy
2019-05-11 00:43:02 +10:00
Oliver Walters
97b9cac205
Successfully move multiple parts with partial quantities
2019-05-11 00:42:24 +10:00
Oliver Walters
306a981ca1
Allow partial-quantity move
...
- Automatically split out the stock
- Move the specified quantity to the new location
2019-05-11 00:40:37 +10:00
Oliver Walters
c376f38a8d
Added function to split stock
...
- Specify the quantity to move into the NEW stock item
- The left over quantity will remain in the current stock item
2019-05-11 00:37:54 +10:00
Oliver Walters
6561a613d7
Add extra validation step
2019-05-11 00:07:21 +10:00
Oliver Walters
8d5c4c521c
Pass stock move quantity through per item
2019-05-11 00:04:45 +10:00
Oliver Walters
ba2f565e35
docstring improvements
...
- Added Attribute docstring to all model objects
2019-05-10 20:11:52 +10:00
Oliver
e1fbd4611f
Merge pull request #289 from SchrodingersGat/delete_on_empty
...
Delete on empty
2019-05-09 23:26:19 +10:00
Oliver
793b4f8063
Merge pull request #288 from SchrodingersGat/tree-badges
...
Tree badges
2019-05-09 23:06:32 +10:00
Oliver Walters
027e1cf130
Add ability to edit 'delete_on_deplete' field
2019-05-09 23:06:19 +10:00
Oliver Walters
ac326c135f
Auto delete stock items when they are depleted
2019-05-09 23:01:32 +10:00
Oliver Walters
61351a8f8d
Renamed add_transaction_note to addTransactionNote
2019-05-09 22:52:38 +10:00
Oliver Walters
92930766c6
Tree view now supports root URL link
2019-05-09 22:23:56 +10:00
Oliver Walters
34225193fa
Improve tree toggle icon
2019-05-09 21:46:11 +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
f4941d55ed
Merge pull request #285 from SchrodingersGat/hide-supplier-part
...
Hide supplier_part field if the part cannot be purchased
2019-05-09 18:46:48 +10:00
Oliver Walters
2c5bb6b126
Hide supplier_part field if the part cannot be purchased
2019-05-09 18:43:22 +10:00
Oliver Walters
ef9fb5b018
Hide some fields from forms
2019-05-09 18:38:37 +10:00
Oliver
8bf09300bb
Merge pull request #281 from SchrodingersGat/page-title
...
Page title
2019-05-09 18:33:03 +10:00
Oliver Walters
ca6bd0a999
Add page title for company page
2019-05-09 18:17:28 +10:00
Oliver Walters
b9b17f39d9
Override page title for Stock app
2019-05-09 18:11:13 +10:00
Oliver Walters
873bd182f0
Vertical alignment of button toolbars
2019-05-09 18:04:42 +10:00
Oliver Walters
e9c904076f
Added help text for model fields
2019-05-08 23:32:57 +10:00
Oliver Walters
afffd06fb8
Limit choices for 'parent' field when editing StockLocation
2019-05-08 18:00:34 +10:00
Oliver Walters
abb8930702
Limit SupplierPart choices in EditStockItem view
2019-05-06 18:06:06 +10:00
Oliver Walters
d2d248c72e
QR button code is now a template
2019-05-05 10:56:59 +10:00
Oliver Walters
8a6932e993
Improve QR code display
...
- Pretty little glyphicon button!
2019-05-05 08:39:16 +10:00
Oliver Walters
ab6673caa3
Add tests for default location traversal
2019-05-04 23:20:59 +10:00
Oliver Walters
71972f4454
Add function to get the default location for a part
...
- If field not specified, look at the part category
2019-05-04 19:06:39 +10:00
Oliver Walters
9aa1a70f18
QR code improvements
...
- Display QR codes as links to served images
- The qr_code plugin caches these images in the background
- Make a qr_code template to push out as a modal form
- Create a QRCodeView to simplify display of QR codes
- Add option to launchModalForm() to disable the 'submit' button
Refactored QR code display for
- StockLocation
- StockItem
- Part
2019-05-04 18:46:57 +10:00
Oliver Walters
8e65c0a120
Fixes for some broken views
2019-05-04 17:20:05 +10:00
Oliver Walters
4ef1e4fc78
Explicitly mark some CharField as non blank
2019-05-04 17:01:31 +10:00
Oliver Walters
b6cace2681
Add 'options' drop-down for Part table in Category view
...
- Doesn't do anything yet
2019-05-04 16:41:45 +10:00