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
Oliver Walters
a116c3f191
Handle case where a new stock item is to be created without the part being specified
2019-05-03 23:52:30 +10:00
Oliver
6482b54bc9
Merge pull request #205 from SchrodingersGat/qr-codes
...
Qr codes
2019-05-02 21:15:34 +10:00
Oliver Walters
5a234a1070
Added barcode for Part object
2019-05-02 20:57:53 +10:00
Oliver Walters
c901294a48
Add more information to the Barcode
...
- API endpoint URL
- Add barcode generation for StockLocation
2019-05-02 20:50:20 +10:00
Oliver Walters
d49ce465e5
Removed UUID field from StockItem
...
- QR code is now created based on a JSON object
- This will make it extensible to other things such as StockLocation
- Created a helper function to make Barcode objects
2019-05-02 20:40:56 +10:00
Oliver Walters
4d7ac870e0
Use the collapse template for the stock location list view
2019-05-02 19:02:03 +10:00
Oliver Walters
20cfa71db2
Added migration file
2019-05-02 00:59:59 +10:00
Oliver Walters
22f8c1d8c7
Adjust model field (haven't run make migrate yet)
2019-05-02 00:57:44 +10:00
Oliver Walters
8a8de2b78f
Add migration file
...
- Should pass this time
2019-05-02 00:49:30 +10:00
Oliver Walters
7e149f817c
Small change to uuid should trigger migrations
2019-05-02 00:41:29 +10:00
Oliver Walters
905d78e25c
Complete build now works
...
- Marks build as complete
- Deletes temporary BuildItem objects
- Preselects the part's default_location if there is one
- Creates a new stockitem in the selected location
2019-05-02 00:04:39 +10:00
Oliver Walters
436d158cfe
Merge remote-tracking branch 'inventree/master' into build-allocation
...
# Conflicts:
# InvenTree/company/templates/company/tabs.html
2019-05-01 08:15:58 +10:00
Oliver Walters
395db4df38
Pepe fixes
2019-04-30 00:18:58 +10:00
Oliver Walters
5c5411132a
First pass at build allocation table
...
- Uses bootstrap-table "detailView" function
2019-04-29 23:56:02 +10:00
Oliver Walters
e471313435
PEP fix
2019-04-29 18:43:44 +10:00
Oliver Walters
3b838d29ec
Small fixes
...
- Hide some tabs that aren't functional yet
- Hide fields instead of marking them as disabled
- Default behaviour is to allow all hosts
2019-04-29 18:35:16 +10:00
Oliver Walters
2f7f49c116
PEP fix
2019-04-28 11:54:40 +10:00
Oliver Walters
ba49b080b0
Some small tweaks
2019-04-28 11:46:53 +10:00
Oliver
e5e6480099
Merge pull request #181 from SchrodingersGat/supplier-parts
...
Supplier parts
2019-04-28 11:28:32 +10:00
Oliver Walters
1171953e65
Limit SupplierPart options in CreateBomItem form
...
- If Part is selected, limit the options in supplier_part field
- Only allow supplier_parts which map back to the same part
2019-04-28 11:24:26 +10:00
Oliver Walters
a9fbbc3a37
Remove references to get_object_or_404
...
- Properly handle DoesNotExist errors
2019-04-28 11:09:19 +10:00
Oliver Walters
2108ee2eb7
Update makefile
2019-04-28 08:42:17 +10:00
Oliver Walters
d55ea1a982
PEP fixes
2019-04-28 01:09:48 +10:00
Oliver Walters
aa04941bf1
Add module-level docstrings for each app
2019-04-28 01:05:45 +10:00
Oliver Walters
a499fd325e
Docstring for Stock app
2019-04-27 22:49:16 +10:00
Oliver Walters
0484e62836
PEP fixes
2019-04-27 15:25:40 +10:00
Oliver Walters
e7685951e1
Add (simple) test cases for Stock API
...
- Still a lot of work to do here
2019-04-27 15:24:30 +10:00
Oliver Walters
030265cc2d
Allow editing of 'notes' field when creating new StockItem
2019-04-27 13:12:34 +10:00
Oliver Walters
6c3041d99c
Remove 'draft' function from StockItem RUD endpoint
2019-04-26 21:44:38 +10:00
Oliver Walters
d78841a665
Allow editing of more stockitem options
2019-04-25 23:35:48 +10:00
Oliver Walters
8d5850248e
PEP fixes
2019-04-25 23:25:52 +10:00
Oliver Walters
1f8632c77c
Improved response message for stocktake
2019-04-25 23:19:22 +10:00
Oliver Walters
990808ec03
Fix code to move multiple parts via AJAX / JSON
2019-04-25 23:16:54 +10:00
Oliver Walters
757cd539b2
Enforce 'notes' field for StockItem move
...
- Better error handling for StockItem.move
2019-04-25 23:01:03 +10:00
Oliver Walters
053e9c9795
Add a stock tracking index
...
- Shows entire history of stocktracking items
2019-04-25 22:11:10 +10:00
Oliver Walters
79f8736b6b
Add note on creation of StockItem
2019-04-25 22:10:46 +10:00
Oliver Walters
533fdb71c4
Javascript function to render stock tracking table
...
- Added extra info to StockItemTracking serializer
2019-04-25 22:04:32 +10:00
Oliver Walters
f36f02b27f
Tests for stock app
...
- Increase coverage of Stock/models.py to 84%
2019-04-25 17:30:44 +10:00
Oliver Walters
7b68310d73
PEP fixes
2019-04-25 03:20:25 +10:00
Oliver Walters
7c91c9ba79
Reverse URL for stock models
...
- stock location
- stock item
- stock tracking
- Added blank test files
2019-04-25 03:13:41 +10:00
Oliver Walters
0cdf660a80
Merge remote-tracking branch 'inventree/master' into delete-old-forms
...
# Conflicts:
# InvenTree/part/views.py
2019-04-18 23:51:58 +10:00
Oliver Walters
9e9aa02b90
Remove old templates from Stock
2019-04-18 23:41:17 +10:00
Oliver Walters
8040ad8a6a
Add function to duplicate stock item
2019-04-18 23:28:46 +10:00
Oliver Walters
a0b6900eb8
Disable buttons that require row selection, until a selection has been made
...
- Stock table
2019-04-18 22:35:51 +10:00
Oliver Walters
5d887f3785
Remove 'simple-history'
...
- Might re-add it later on
2019-04-18 21:28:09 +10:00
Oliver Walters
fd3f6ec21e
Add stock item filtering by sub-category
2019-04-18 08:33:12 +10:00
Oliver Walters
ebcbf9a90e
Add status_text to API
2019-04-17 23:33:19 +10:00
Oliver Walters
963883acd6
Consolidated function to adjust stock
...
- Add / remove / stocktake
- Handle forms and tables properly
2019-04-17 23:17:04 +10:00
Oliver Walters
ba1b8d9181
Created js function to load stock table
...
- Avoid duplication of code
2019-04-17 22:59:52 +10:00
Oliver Walters
b9b8b5ee12
Update model for StockItem
2019-04-17 18:34:21 +10:00
Oliver Walters
01bdf2f19b
PEP fixes
2019-04-16 22:32:43 +10:00
Oliver Walters
be60fbcc25
More cleanup for modal forms
...
- Require 'ajax_template_name' to be set or weird things happen!
2019-04-16 21:25:20 +10:00
Oliver Walters
29f33a8eec
Move button locations into bootstrap-table headers
...
- part category
- stock location
- build list
- company list
- supplier part list
2019-04-16 11:46:07 +10:00
Oliver Walters
1ef81ecf2e
Ignore some rules
2019-04-14 09:39:01 +10:00
Oliver Walters
76b0d17b11
PEP fixes for /stock
2019-04-14 09:23:24 +10:00
Oliver Walters
e6e03963c4
Simplified custom button text for modal forms
...
- Now only configured from the javascript end
- No server-side configuration of button text
2019-04-13 23:02:23 +10:00
Oliver Walters
51d77ce4d2
Include uuid in serializer and api
2019-04-13 07:56:06 +10:00
Oliver Walters
7b68bac32f
Display UUID and QR code on stockitem page
...
- The actual display of this can be improved upon at a later stage
2019-04-13 01:14:24 +10:00
Oliver Walters
b64e584b52
Add UUID field to StockItem model
2019-04-13 01:12:47 +10:00
Oliver Walters
1b5287307b
Add some help text
2019-04-13 00:52:26 +10:00
Oliver Walters
926d717190
Add quantity field to StockItemTracking
...
- Keep track of historical levels of part availability
2019-04-13 00:14:10 +10:00
Oliver Walters
93bb0bf6f4
Improved 'move stock' form
...
- Better error checking on the form (provides form validation messages to user)
2019-04-13 00:08:13 +10:00
Oliver Walters
f451d31f00
Rearrange stockitem drop-down menu for more logical operations
2019-04-12 23:10:47 +10:00
Oliver Walters
e560ea4a41
Update edit form for StockItem
...
- Disallow direct quantity editing (must perform stocktake)
- Add notes field to allow editing
2019-04-12 23:10:32 +10:00
Oliver Walters
7566c3769a
Added a note for future work
2019-04-12 23:05:12 +10:00
Oliver Walters
68ec5df371
Correctly handle StockTrackingItem if there is no user data
2019-04-12 23:03:02 +10:00
Oliver Walters
88103b63d2
Cannot filter by STATUS
...
- Is this because it is a dict?
- Need to address this in the future
2019-04-12 22:46:48 +10:00
Oliver Walters
7a7b0aea33
Changed 'stocklocation.items' to 'stocklocation.stock_items'
2019-04-12 22:46:15 +10:00
Oliver Walters
c67dc6f56e
Initial updates required to run under django 2.2
...
- Change to middleware.py
- Change some URLs formatting
- Fix django version at 2.2
2019-04-12 20:44:22 +10:00
Oliver
1b9c98ae3e
Bug fix for stock item traking list
...
- Query was returning ALL stock tracking objects!
- Now filter by StockItem ID
2018-05-10 21:27:41 +10:00
Oliver
4b4db50de5
Display username in stock-tracking
...
- Add UserSerializer
2018-05-10 21:20:12 +10:00
Oliver
dcf74292b6
Changed tracking into to datetime field
...
- Added moment.js for formatting dates
-
2018-05-10 21:13:36 +10:00
Oliver
bf4ffb8b0b
Add part stocktake to Stock Location page(s)
2018-05-08 22:41:52 +10:00
Oliver
f2982a59ad
Added StockTracking API
...
/api/stock/track/
ListCreate API view
StockItem page now shows bootrap-table of tracking notes
2018-05-08 22:30:32 +10:00
Oliver
3b6ef3f008
Added stocktake / add / remove actions to StockItemDetail page
2018-05-08 22:14:03 +10:00
Oliver
25e0de1ce7
Vast improvements to stocktake API endpoint
...
- Also acts to ADD and REMOVE stock
- Send 'action' field to specify which one to perform
- Fixed add_stock and remove_stock funcs for StockItem model
- Autoatically add transaction notes for all actions
2018-05-08 22:06:28 +10:00
Oliver
3f1c6e2059
Simplified modal calls
...
- Default modal target supplied (can be overridden in options)
2018-05-08 19:55:39 +10:00
Oliver
c5155d5ac7
Move modal JS file
...
- Loaded by base.
2018-05-08 19:40:29 +10:00
Oliver
fdf214626c
Further assorted updates
...
What, you need more commit details?! Pah
2018-05-07 23:40:17 +10:00
Oliver
b6944620dd
Fixes for JSON API
...
- Set content type
- Stringify JSON data
- Finish API to stocktake multiple parts
2018-05-07 23:25:47 +10:00
Oliver
425db5fd39
Tweaked part stock page
2018-05-07 21:51:08 +10:00
Oliver
2b286c3b83
Bulk stocktake API
...
- Pass list of pk/quantity dict objects
2018-05-07 21:17:19 +10:00
Oliver
e746ca6e0a
Paginate company page
2018-05-07 18:16:12 +10:00
Oliver
ee0cbdbb07
Skeleton for deleting multiple items
...
- Does not work yet! But opens a window...
2018-05-06 22:38:39 +10:00
Oliver
c1e7e95fc0
UI improvements
...
Consolidated detail pages with OPTIONS drown down
(rather than multiple single buttons)
2018-05-06 22:09:15 +10:00
Oliver
8a0db0e6df
Updated stockitem detail page
...
- Consolidated buttons into dropdown
- Stock tracking now in collapsible list
2018-05-06 21:53:06 +10:00
Oliver
d8922aa9db
Implemented API to move multiple items at once
...
- Added ability to override request method in inventreeUpdate
- Added inventree/script/stock.js to handle stock API js
- Added StockMove API endpoint
2018-05-06 21:39:33 +10:00
Oliver
8e7e784934
Remove test code
2018-05-05 01:27:15 +10:00
Oliver
41e031d4b4
Draft API endpoint RUD class
...
- RUD = Retrieve / Update / Destroy
- When issuing an Update command, the validity is checked but the model object is only saved if the POST data has "_is_final": true
2018-05-05 01:26:01 +10:00
Oliver
7e4b0630b6
Part category API
2018-05-04 23:54:57 +10:00
Oliver
83dd068fec
Initial commit for api.js
...
- GET JSON call with console output
- Provide filters
2018-05-04 23:43:41 +10:00
Oliver
a7d4e299b2
Cleaned up stock app
2018-05-04 23:31:48 +10:00
Oliver
3511ce29ee
Added StockLocation API
2018-05-04 01:33:21 +10:00
Oliver
395bf23d6c
Cleanup / formatting
2018-05-04 01:33:13 +10:00
Oliver
347a324589
Fix
2018-05-04 01:04:12 +10:00
Oliver
52cc7360b3
More betterer buttons for stock locationdetail
2018-05-04 00:48:36 +10:00
Oliver
1c5972e326
Cleaned up action buttons for StockLocation
...
- Merged edit/create/delete into a single drop-down button
2018-05-04 00:32:06 +10:00
Oliver
1899d8f3e9
Stock location part list now uses bootstrap table
...
- Serializers within serializers!
2018-05-02 23:08:45 +10:00
Oliver
211edb23bb
Removed footable
...
- Now using bootstrap-table
2018-05-02 22:22:43 +10:00
Oliver
f337291db8
Stock tables now searchable
2018-05-01 09:04:52 +10:00
Oliver
b24ddac0b8
Part stuff
2018-04-30 22:30:15 +10:00
Oliver
4a2b6a5674
Formatting fixes
2018-04-30 21:56:46 +10:00
Oliver
37b109b8fc
First pass of automated tracking data
...
- When stock item is moved
- When stocktake is performed
- Yes it is bad - needs improvement!
2018-04-30 21:36:50 +10:00
Oliver
f9138f4997
Item stocktake form
2018-04-30 21:03:25 +10:00
Oliver
d68b51e007
Add ability to move a stock item
2018-04-30 01:00:18 +10:00
Oliver
bee760d184
Deleted extraneous form code
2018-04-30 00:59:36 +10:00
Oliver
f74e176579
JSON api for stock items
2018-04-29 21:02:40 +10:00
Oliver
3403af18c8
Trackable items must have serial number set
2018-04-29 17:06:22 +10:00
Oliver
feb45513f7
Prevent serial number for stock item with quantity > 1
2018-04-29 13:20:02 +10:00
Oliver
8d0789c37c
Implemented tree view
...
Using library bootstrap-treeview
- part category tree
- stock location tree
- Currenly is functional but looks terrible
2018-04-28 23:22:12 +10:00
Oliver
095492203f
Simplified javascript templating
...
- Load js modules in block js_load
- Write $(document).ready script in block js_ready
- Write any other js in block_js
2018-04-28 12:45:12 +10:00
Oliver
7ebb723d15
Revert "Set initial value fields to disabled for some forms"
...
This reverts commit c1271367bd
.
2018-04-28 12:19:50 +10:00
Oliver
c1271367bd
Set initial value fields to disabled for some forms
...
- Prevent user from changing certain fields
- Only when a form is launched from a particular view
2018-04-28 12:14:18 +10:00
Oliver
bc597d7c21
Style fixes
2018-04-28 01:16:47 +10:00
Oliver
1df42b2397
Sanity checking for StockItem
...
- If a SupplierPart is selected, it must point to the same Part type as the Part field!
2018-04-28 00:06:39 +10:00
Oliver
4d6e2aca2c
Modal forms for stock app
2018-04-27 22:59:08 +10:00