2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-29 14:06:47 +00:00

128 Commits

Author SHA1 Message Date
Oliver
d2b74e7684
Stock barcode fix (#232)
* API: Provide more info in error messages

* Fix support for legacy stock item custom barcodes

* Refresh display after assigning barcode

* Update release notes

* Fix for scanning unkown barcode

- Modern API returns slightly different data

* Fix for scanning unkown barcode

- Modern API returns slightly different data

* Update release notes
2022-12-11 23:41:21 +11:00
Oliver
730521fd00
New barcode actions (#218)
* Bump release notes

* Adds method for linking custom barcodes

* Custom getter method for determining if an item has barcode data

* Add method to check if the API supports "modern" barcodes

* Refactor custom barcode implementation for StockItem

- Needs testing

* Unit testing for linking and unlinking barcodes

* Fixes

* Refactor code for "custom barcode action" tile

* Add custom barcode action to StockLocation

* Add extra debug to debug the debugging

* Unit test fix

* Change scope I guess?

* remove handler test
2022-12-05 23:39:40 +11:00
Oliver
6d796a2e32
Barcode updates (#211)
* Adds API function for unlinking a barcode

* Show barcode unlink result

* Update release notes and version number
2022-09-15 14:22:40 +10:00
Oliver
e7c5186823
Catch some subtle errors (#202)
- Prevent API requests for invalid PK values
- Perform checks for invalid PK values at multiple points
- Change order of operations in StockDetail widget
2022-08-04 13:23:29 +10:00
Oliver
19ff6eb526
Stock item serial number functionality (#199)
* Stock item serial number functionality

- Allow serial numbers to be specified when creating a new stock item
- Allow serial number to be edited from stock item context

* Update build number and release notes
2022-08-02 13:34:15 +10:00
Oliver
c5162c1947
Check if widget is mounted before calling setstate() (#193) 2022-07-29 20:01:06 +10:00
Oliver
f652bebd83
Show loading overlay for "toggle star" operation (#192)
* Show loading overlay for "toggle star" operation

* Improve loading speed of PartDetail widget

* Improve loading of StockDetail widget
2022-07-29 19:30:22 +10:00
Oliver
19ad3153e4
Remove and fix some TODO entries (#188) 2022-07-20 14:18:07 +10:00
Oliver
01dd046dd1
Display overlay screen for blocking operations (#186)
* Catch state error in homepage widget

* Add flutter_overlay_loader lib

- Displays an overlay screen to indicate blocking operation

* Wrap blocking widget transitions in a loading overlay

- Prevents user from doing other things while loading
- Shows the user that something is happening

* Linting fixes

* Show overlay when uploading attachment file

* Show overlay when downloading file also

* Show overlay when loading or submitting API forms

- Major improvements to usability "feel"

* UI improvements for stock item test results widget

* Fix API_FORM bug

- onSuccess function was not being called
2022-07-20 09:05:21 +10:00
Oliver
aa274b2e45
Stock location scan (#169)
* Add action for scanning a stock location into another location

* Adds barcode scan handler for new functionality

* Handle scanning of stock location

* Cleanup

* Refactor existing barcode scanning functions

- Will require extensive testing and validation

* Add entry to release notes

* Delete dead code

* Improved ordering based on stock quantity

* Bug fix for 'adjustStock' function

* Improve error responses for barcode scanning

* Improve error responses for barcode scanning

* Remove old debug statements

* Add some extra explanatory texts

* Icon change

* Fixes for unit tests

* Adds extra functionality for user profile manager

* Refactor barcode code - do not rely on BuildContext

* Adds initial unit testing for barcode scanning

- Work on mocking barcode data
- Add hooks for testing snackBar and audio files

* Linting fixes

* More barcode unit tests

* Cleanup unit tests for barcode

* Remove unused import

* Handle HTTPException in API

* Improvements for API unit testing

* Unit testing for scanning item into location

* Add unit test for scanning in items from a location context

* Unit test for scanning location into parent location

* Improve feedback for barcode scanning events
2022-07-18 22:10:00 +10:00
Oliver Walters
591c6a5592 Update stock display to indicate allocations 2022-07-05 18:38:28 +10:00
Oliver Walters
ada64f3971 Adds attachment support for the StockItem model 2022-06-04 00:23:10 +10:00
Oliver Walters
aa4317a2fe Add support for "quarantined" stock item status 2022-06-03 19:51:08 +10:00
Oliver Walters
1b901b39df Remove old stuffs 2022-05-22 16:19:10 +10:00
Oliver Walters
850c2b8c12 Remove support for legacy stock transfer API code
- Relies on modern API now
- Checks for error messages against hidden fields in stock items
2022-05-22 15:59:19 +10:00
Oliver Walters
b98f044204 More checks 2022-05-22 09:56:22 +10:00
Oliver Walters
f13b04d029 Refactor audio file player
- Do not play if there is no context available (e.g. unit testing)
2022-05-22 08:23:20 +10:00
Oliver Walters
b18dd92079 Fixes after preferences file refactor 2022-05-21 19:44:47 +10:00
Oliver Walters
366c732668 Add support for locating a stock item 2022-05-10 00:30:28 +10:00
Oliver Walters
03c6de8255 Stock location can now be identified via the app 2022-05-10 00:15:20 +10:00
Oliver Walters
2a6df373c5 Refactor imports 2022-03-29 19:54:19 +11:00
Oliver Walters
8233fb39d6 Adds user setting to show or hide stock history 2022-03-28 21:41:21 +11:00
Oliver Walters
4a7884f7fd Add skeleton for "Stock History" widget 2022-03-28 21:00:20 +11:00
Oliver Walters
6c7b4ea7c1 Update release notes 2022-03-26 19:21:24 +11:00
Oliver Walters
d780a1faa1 Merge remote-tracking branch 'origin/master' into stock-item-delete 2022-03-26 19:04:48 +11:00
Oliver Walters
fd8fc9051a Show if stock item is "in production" 2022-03-26 18:58:59 +11:00
Oliver Walters
ea724fcf5f Allow user to manually remove (delete) a StockItem 2022-03-26 18:33:02 +11:00
Oliver Walters
faf8e45138 Pop to the previous context if the stock item is "bad" 2022-03-26 17:38:30 +11:00
Oliver Walters
f2f652bfdc Send label printing information to the server 2022-03-26 11:24:56 +11:00
Oliver Walters
34fd68229d Launch a dialog to print a label 2022-03-25 23:37:14 +11:00
Oliver Walters
02a9bbe3c6 Enhance existing api_forms functionality
- Allow form to be created without an actual API endpoint
- Useful for creating client-side forms without any server interaction
2022-03-25 23:36:56 +11:00
Oliver Walters
8e8015abe9 Request list of labels defined for a given stock item 2022-03-25 22:16:36 +11:00
Oliver
582f6bace3 Adds success messages after editing things 2022-03-10 16:59:27 +11:00
Oliver
5d0ffa059d Refactor stock adjustment functions
- Provide compatibility with "modern" and "legacy" API versions
2022-01-08 23:05:45 +11:00
Oliver
7c3698beba Fix QR code icon 2022-01-08 22:30:04 +11:00
Oliver
d296d589d9 Update barcode / qrcode icons 2022-01-05 12:08:47 +11:00
Oliver
3e16ab80f7 bug fixes 2021-10-05 23:01:37 +11:00
Oliver
3daae47a25 Fix strings and icons 2021-10-05 22:54:17 +11:00
Oliver
b7bb81c0ea Fixes 2021-10-05 22:52:23 +11:00
Oliver
4d5af825b1 Add some friendly update messages 2021-10-05 22:48:45 +11:00
Oliver
ba41ebde73 Add support for "modern" stock actions via the API
- In the future, will have to deprecate support for the old ways
- Probably v0.6.x?
2021-10-05 22:45:47 +11:00
Oliver
4f8794e652 Refactor barcode scann function
- Provide a custom callback to be executed when the barcode is scanned
2021-10-03 12:04:01 +11:00
Oliver
65180c7b2f Receive stock against purchase order line items 2021-10-03 01:33:16 +10:00
Oliver
2886f7c930 Display non-field errors as returned from the server 2021-10-03 01:20:37 +10:00
Oliver
2f8d02b0be API_Form: Allow customizable icon
- Also fixes for API search
2021-10-02 22:31:28 +10:00
Oliver
77bac9af36 Yet more linting 2021-09-28 20:35:19 +10:00
Oliver
ad0cc36540 More linting work 2021-09-28 20:24:55 +10:00
Oliver
c1152ee286 Fixes for type casting 2021-09-28 17:53:14 +10:00
Oliver
e538174b07 Bug fix for stock item actions - initial quantity 2021-09-28 11:40:15 +10:00
Oliver
8d7b339482 Comment 2021-08-16 12:22:27 +10:00