Commit Graph

1265 Commits

Author SHA1 Message Date
Oliver
890fd0f1a0 Remove nav tree 2021-10-29 10:54:15 +11:00
Oliver
5f139b4aa4 Refactor sidebar for "location" display 2021-10-29 00:43:58 +11:00
Oliver
e0d3facfac Refactor sidebar for "stock item" page 2021-10-29 00:40:16 +11:00
Oliver
2778ff55da Remove btn-default 2021-10-28 19:57:17 +11:00
Oliver
f8ac016d60 replace labels with badges 2021-10-28 17:41:40 +11:00
Oliver
05d350b6c8 Tweaks for settings pages 2021-10-28 12:38:33 +11:00
Oliver
ae2c3e8293 remove "panel-inventree" references 2021-10-28 08:31:36 +11:00
Oliver
8535dd7572 part category and stock location views 2021-10-27 23:53:41 +11:00
Oliver
a21959f54d Refactor stock location view 2021-10-27 23:46:09 +11:00
Oliver
840187f577 refactor stock item page 2021-10-27 23:35:59 +11:00
Oliver
711b3ba923 remove "panel-default" 2021-10-27 23:08:15 +11:00
Oliver
e178a2c370 Refactoring for "stock" pages 2021-10-27 21:50:18 +11:00
Oliver
9df9aaa18f breadcrumbs 2021-10-27 20:17:37 +11:00
Oliver
2d910022ac Fix for supplier price breaks
- Make "price" field an InvenTreeMoneySerializer instance
- Add client-side validation for number inputs
2021-10-26 01:55:41 +11:00
Oliver
d3b1ecd65e Add "owner" field 2021-10-20 23:44:01 +11:00
Oliver
4a0ed4b2a1 Start of API forms for stock item 2021-10-20 10:53:21 +11:00
Oliver
fb6f15f462 Delete a bunch of old template files 2021-10-17 22:57:15 +11:00
Oliver
a97a918860 cut out the fat
(removing dead code for outdated form views)
2021-10-17 21:46:33 +11:00
Oliver
9319113793 quick bug fix 2021-10-14 16:27:10 +11:00
Oliver
0581885ad5 Simplify BOM table buttons 2021-10-14 00:26:34 +11:00
Oliver
ab4c428031 Allow conversion of out-of-stock items 2021-10-11 11:31:23 +11:00
Oliver
535d45bce4 Remove outdated Views / Forms 2021-10-06 20:19:29 +11:00
Oliver
336b05aa4e Exclude sales order allocations when searching stock 2021-10-06 17:42:00 +11:00
Oliver
95e7cc7a5d Fixes for unit tests 2021-10-06 08:56:24 +11:00
Oliver
758e402a66 PEP style fixes 2021-10-05 23:06:12 +11:00
Oliver
6fd1abb07a Remove unused view class 2021-10-05 22:58:28 +11:00
Oliver
0a2a81582e Handle case where notes are not provided 2021-10-05 22:46:34 +11:00
Oliver
102f886d81 All stock adjustment actions ported to new scheme
- Bumped API version too
2021-10-05 22:26:21 +11:00
Oliver
f197d8b1da Adds a DRF serializer for stock adjustments
- Currently the "StockCount" action has been transferred
2021-10-05 22:04:17 +11:00
Oliver
e39f1c320c Merge remote-tracking branch 'inventree/master' into auto-allocation-improvements 2021-10-05 12:53:47 +11:00
Oliver
a3ba33cae8 Fixes for build output tables
- Only show "completed" builds in the "completed builds" table (should be obvious)
- Display "serial number" appropriately in build output allocation table
2021-10-05 12:32:54 +11:00
Oliver
563deb5ffa Add ability to specify "source location" for stock allocations
- Defaults to build.take_from
- User-selectable at run-time
- Selected value affects select2 query
2021-10-05 10:38:18 +11:00
Oliver
ae0efe73d1 Further improvements to build allocation form
- Auto-allocation button ignores outputs which are complete
- StockItem API allows filtering by BomItem
- Quantity inputs are now auto-filled
- Display progress bar in the modal form
2021-10-05 08:25:10 +11:00
Oliver
62e62af5fc PEP style fixes 2021-09-28 10:41:30 +10:00
Oliver
d9704f4123 Add unit test for deleting stock items via the API 2021-09-28 10:41:03 +10:00
Oliver
2d9ca7c1b6 Do not rebuild the entire StockItem tree every time a single StockItem is deleted! 2021-09-28 10:36:01 +10:00
Oliver
16e00962f5 Override the "delete" behaviour for StockItem API
- Mark for deletion instead of calling database delete
- Returns (almost) instantly instead of hanging
- Much better UI experience when performing bulk delete operations
2021-09-28 10:14:25 +10:00
Oliver Walters
ecc7bd2d5b Unit test fixes 2021-09-07 22:27:39 +10:00
Oliver
5ab4be7025 Unit test fixes 2021-09-07 17:36:53 +10:00
Oliver
918106c225 Adds a background task to remove StockItem objects which are scheduled for deletion 2021-09-07 16:45:58 +10:00
Oliver
7d3cd03d6c Add "scheduled_for_deletion" field to StockItem
- If set to True, this StockItem will be deleted (soon) by the background worker
- As deletion takes significant time, this prevents delete operations from blocking the UI
2021-09-07 16:28:57 +10:00
Matthias
0ebc45e834
replace i html tags 2021-09-02 00:18:47 +02:00
Matthias
6a420fd95c
replace bold tags 2021-09-02 00:17:12 +02:00
Oliver
610c05384b
Merge pull request #2020 from SchrodingersGat/mpn-sorting-fix
Mpn sorting fix
2021-08-26 22:06:06 +10:00
Oliver
bad246bca6 Fixes for ordering of stock table 2021-08-26 08:24:31 +10:00
Oliver
9c9407b1ab Add unit test for catching bug
- Turns out that in an image was uploaded with more than ~2000 vertical pixels it would crash
- Smaller images worked fine?
2021-08-25 14:48:45 +10:00
Oliver
bb8b85c375 Separate purchase_price and purchase_price_currency for StockItem serializer
- Add "purchase_price_string" for a read-only stringified representation
- Unit testing
2021-08-23 21:44:12 +10:00
Oliver
23b2b56de4 StockItemAttachment 2021-08-16 10:56:00 +10:00
Erkut Alakuş
c564896355
Localization of item.quantity removed
Localization of quantity for different cultures(turkish in my case) using comma(,) instead of dot(.) leads syntax error in javascript code and prevents stock item history to load.
2021-08-09 12:11:53 +03:00
Oliver
69f242d11d
Merge pull request #1892 from eeintech/stock_installed_items
Re-enabled installing stock items into others
2021-08-04 09:01:28 +10:00
eeintech
172a08fbba Removed old quantity setting lines 2021-08-03 09:53:08 -04:00
Oliver
f057937df0 Fix for non-integer serial numbers 2021-08-03 09:46:28 +10:00
eeintech
1c4924a4a5 Style duh 2021-08-02 15:14:55 -04:00
eeintech
ac3dcac641 Re-enabled installing stock items into others 2021-08-02 15:05:24 -04:00
eeintech
e9be3fb4ec Redirect to stock index if stock item is completely depleted 2021-07-27 11:11:30 -04:00
Oliver
4ee0004c97 Filtering for Build and StockItem 2021-07-21 21:34:16 +10:00
Oliver
9cf372f633 PEP fixes 2021-07-21 21:24:18 +10:00
Oliver
85a40ec418 Tree exclusion for PartCategory and StockLocation 2021-07-21 21:23:30 +10:00
Oliver
140396ccdd
Merge pull request #1854 from SchrodingersGat/url-unit-test
Add unit test for validation of reverse url lookup
2021-07-21 11:09:10 +10:00
Oliver
893628d1b8 URL fixes 2021-07-21 10:52:14 +10:00
Oliver
598ea11211 Add manager class for StockItem 2021-07-21 09:28:58 +10:00
Oliver
4413699844 PEP fixes 2021-07-19 17:23:51 +10:00
Oliver
efb4f194b6 Refactor StockExportOptions form 2021-07-19 17:23:18 +10:00
Oliver Walters
753fe9c80f Ordering and rendering for StockLocation 2021-07-18 21:15:51 +10:00
Oliver
533a3aa368 Refactor StockItem pages 2021-07-15 22:19:13 +10:00
Oliver
b1640fcc23 Refactor StockLocation pages 2021-07-15 21:38:05 +10:00
Oliver
2d2ad91545 Move "stock" part view 2021-07-15 12:52:36 +10:00
Oliver
0cb2b49333 Remove unused forms 2021-07-12 22:23:08 +10:00
Oliver
bd8b52d7d2
Merge pull request #1804 from SchrodingersGat/api-stock-adjustments
Api stock adjustments
2021-07-12 22:16:56 +10:00
Oliver
30fd3c8841 Unit test fixes 2021-07-12 22:03:36 +10:00
Oliver
77cfadad42 Add 'title' option for contsructed fields 2021-07-12 21:11:29 +10:00
Oliver
52eedef820 remove old StockAdjust view 2021-07-12 21:03:28 +10:00
Oliver
e9bf4b4cef Add some more functionality to StockLocation page 2021-07-12 20:53:36 +10:00
Oliver
2ea4824030 Add option to move stock for a part 2021-07-12 20:45:45 +10:00
Oliver
9fc7976569 Refactor all "adjustment" forms to use the new API approach 2021-07-12 20:38:54 +10:00
Oliver
2bebf2d41a Test fixes 2021-07-12 20:00:50 +10:00
Oliver
11ee8e8369 Raise error if specified quantity is above available quantity 2021-07-12 19:59:10 +10:00
Oliver
51314a0261 Refactor error messaging for stock adjustment API 2021-07-12 19:41:50 +10:00
Oliver
e04828214a Refactor showApiError() function 2021-07-12 19:20:29 +10:00
Oliver
e3f85414fa Stock API URL cleanup 2021-07-12 17:32:06 +10:00
Oliver
c045a3b6f6 Refactorin' 2021-07-11 20:36:52 +10:00
Matthias
03fb6e5c61 support leading zeros in serial numbers 2021-07-10 17:54:17 +02:00
Oliver
cbd291849c More unit test fixes 2021-07-09 01:49:17 +10:00
Oliver
a985e11aa8 Simplify and add filters for StockList API endpoint 2021-07-08 20:10:22 +10:00
Oliver
c7f79a5a08 Fixes 2021-07-08 19:23:01 +10:00
Oliver
79d90b1c4a Additional filtering options for name and IPN fields 2021-07-08 17:46:57 +10:00
Oliver
f0e7826fdc Adds some more API filters for the StockItem endpoint 2021-07-08 17:44:52 +10:00
Oliver
81010994e7 Adds regex filtering for "batch" code on StockItem 2021-07-08 17:26:55 +10:00
Oliver
a2870b60d9
Merge pull request #1757 from matmair/stock-next-prev
Stock previous / next serial
2021-07-08 11:41:01 +10:00
Oliver
1a979fc113 Filtering fix for StockItem attachments 2021-07-08 10:41:18 +10:00
Matthias
2db42eff50 remove unneeded tag 2021-07-06 21:25:42 +02:00
Matthias
98c52c06ac Revert "fetching supplier part for stock tables"
This reverts commit eaf191dc8d.
2021-07-06 21:20:27 +02:00
Matthias
9ed2338162 bolder type for serial numbers 2021-07-06 21:10:42 +02:00
eeintech
87a7081185 Fixed supplier part detail handling in stock table 2021-07-06 14:32:16 -04:00
eeintech
6687661928 Fixes for stock modal and notes propagation to tracking items 2021-07-05 17:36:10 -04:00
Matthias
84b67e2cc1 also allow the boundaries 2021-07-05 00:53:05 +02:00
Matthias
1786c029b4 prev and next serial link in stock items 2021-07-05 00:47:45 +02:00
Matthias
eaf191dc8d fetching supplier part for stock tables 2021-07-04 23:45:04 +02:00
Oliver
2b7805e668 PEP fix 2021-07-03 20:34:30 +10:00
Oliver
8d1928f181 Typo fix 2021-07-03 20:29:23 +10:00
Oliver
ce703bf94b Adds detail API endpoint for StcokItemTracking model 2021-07-03 20:26:33 +10:00
Oliver
90a3a8a288 Merge remote-tracking branch 'inventree/master' into drf-api-forms 2021-07-03 12:35:40 +10:00
Matthias
f051714a75 style fix 2021-07-02 16:34:06 +02:00
Matthias
9c8717574a implement purchase price filter for stock table
Closes #1717
2021-07-02 16:31:42 +02:00
Oliver
984828f3bb Specify 'default' functions for 'reference' field in SalesOrder and PurchaseOrder
- Refactor CreatePurchaseOrder form
- Some migrations
2021-07-02 23:59:02 +10:00
Oliver
51ebe30754 Merge remote-tracking branch 'inventree/master' into drf-api-forms
# Conflicts:
#	InvenTree/company/forms.py
2021-07-02 11:26:09 +10:00
Matthias
3c6c9c59d6 added clean migration steps for all price fields 2021-07-01 07:11:15 +02:00
Oliver
9d1c1b98df PEP fix 2021-07-01 14:33:16 +10:00
Oliver
bb0a72f235 Refactor forms for StockItemTestResult
- Add DETAIL endpoint for model
- Remove old views
- Remove old forms
2021-07-01 14:31:37 +10:00
Matthias
ea8b102897 style fix 2021-07-01 00:50:50 +02:00
Matthias
fcdefc4f83 removing default_currency in fields 2021-07-01 00:40:26 +02:00
Matthias
3a57093b4e replace MoneyFields with inherited classes 2021-07-01 00:13:38 +02:00
Oliver
770cd9a12d Fix for LocationSerializer 2021-06-30 22:10:15 +10:00
Oliver
30ac5dba55 Display attachment upload date 2021-06-30 17:44:23 +10:00
Oliver
9b4db43232 Refactoring "attachment" tables to use the API
- Part attachments
- StockItem attachments
- PurchaseOrder attachments
- SalesOrder attachments
- BuildOrder attachments
2021-06-30 17:40:44 +10:00
Oliver
8f47035a7b Refactor delete view for PartAttachment and StockItemAttachment 2021-06-30 12:58:41 +10:00
Oliver
b946aedb5c Replace PartAttachmentEdit view 2021-06-30 09:49:30 +10:00
Oliver
8c439e52fd PEP fix 2021-06-30 09:41:13 +10:00
Oliver
54c9bd25a5 Add detail endpoint for StockItemAttachment 2021-06-30 09:40:54 +10:00
Oliver
87235b7e6f Replace StockItemAttachmentCreate form
- Also replace drag-and-drop
- Add 'hidden' option for form fields
- Adds renderer for StockItem model
2021-06-30 09:17:28 +10:00
Oliver
7d53bcb27c Convert StockItemEditStatus to use API forms 2021-06-30 08:52:53 +10:00
Oliver
67f76c8bca Merge remote-tracking branch 'inventree/master' into drf-api-forms 2021-06-27 09:26:23 +10:00
Oliver Walters
7505d7b3c5 Unit test fixes 2021-06-27 00:47:12 +10:00
Oliver
04374c71c2 Annotate models with their API list view
- It will make sense, trust me
2021-06-25 00:17:58 +10:00
Oliver
061a120af2
Merge pull request #1705 from SchrodingersGat/part-validation
API Validation fixes
2021-06-22 13:39:05 +10:00
Oliver
c62ba5eb12 Perform a "full_clean" on serialized model
- DRF does not by deault run validate_unique on the model
- Need to check if we are "creating" or "updating" a model
- Catch and re-throw errors in the correct format
- Unit tests
2021-06-22 10:09:19 +10:00
Adam Walsh
d1a2ed9af1
Fix supplier part view/edit without a manufacturer
Fixes the following issues when a supplier part was created with an MPN but no manufacturer was assigned:
- Viewing a supplier part stock item
- Editing a supplier part stock item
2021-06-21 11:20:43 -04:00
Oliver
f90730d866
Merge pull request #1699 from SchrodingersGat/purchase-price-migration
Data migration to copy missing purchase price information to stock items
2021-06-21 20:57:23 +10:00
Oliver
02540edd58 Copy purchase price information across in the data migration 2021-06-21 20:30:15 +10:00
Oliver
ff33cc43bd Create initial migration file 2021-06-21 17:28:41 +10:00
Oliver
044650ca10
Merge pull request #1698 from SchrodingersGat/po-stock-pricing
Displays "purchase order" column in StockItem table
2021-06-21 17:19:38 +10:00
Oliver
e6598b5115 Displays "purchase order" column in StockItem table 2021-06-21 16:58:39 +10:00
Oliver
5e5fc35655
Merge pull request #1688 from SchrodingersGat/supplier-part-parameters
Adds "parameters" for manufacturer parts
2021-06-21 16:39:15 +10:00
Matthias
b32a6b50d2 fixes #1671 2021-06-20 20:16:14 +02:00
Oliver
8a8b310195 Add some more inlines in the admin interface 2021-06-21 00:46:15 +10:00
eeintech
08fbdf660b Fix for #1661 2021-06-14 14:19:10 -04:00
Oliver
573f601752
Merge pull request #1632 from matmair/nav-style
same nav sidebar distance for everything
2021-06-06 22:14:20 +10:00
Matthias
05d79a4c19 same nav sidebar distance for everything 2021-06-05 15:18:08 +02:00
Matthias
d87592aedb use the default currency in forms 2021-06-05 13:22:11 +02:00
Oliver Walters
2a64e4a309 Bug fix for template 2021-05-27 13:23:20 +10:00
Oliver Walters
c2fe5e08b4 Expand possibilities for variant conversion
- Ref get_conversion_options
2021-05-27 12:35:55 +10:00
Oliver Walters
a1c4662e91 Move status messages for stock item 2021-05-18 19:11:37 +10:00
Oliver Walters
5204567628 Bug fix for stock item tracking API 2021-05-18 19:06:41 +10:00
Nigel
bca2f4a07b
feat(sales_order): Stock Items show the PO number
Stock items show the PO number that they were purchased on when being
viewed in the sales order allocation modal and when viewing the sales
order details.
2021-05-13 14:18:25 -06:00
Oliver Walters
3b252b8409 Record the user when updating stock items 2021-05-12 10:42:09 +10:00
Oliver Walters
30ff48d803 Fixes 2021-05-12 10:09:02 +10:00
Oliver Walters
68b53acbf1 remove old fields from the StockItemTracking model 2021-05-12 08:07:03 +10:00
Oliver Walters
03a231bffb Updates
- Add StockHistoryCode to custom context
- Add simple form for editing stock item history
- Add tracking entry when stock status is changed
2021-05-11 23:38:26 +10:00
Oliver Walters
84bfffd5a7 Override 'add_note' when new StockItem is created
- This allows us to prevent the issue of duplicate notes being created
2021-05-11 22:51:29 +10:00
Oliver Walters
0c19a94f5c Add run-time addition of extra data to the API 2021-05-11 22:50:58 +10:00