2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 13:36:50 +00:00

104 Commits

Author SHA1 Message Date
Bobbe
67fd6a564a
Add POReceiveBarcodeHandler to support barcode/po-receive/ endpoint (#421)
* Add POReceiveBarcodeHandler to support barcode/po-receive/ endpoint

* Remove german translation

* Add api version checks

* Add getOverlayText method to barcode handler

* Bump required API version to 139

* Update barcode.dart

The "quantity" field is not an integer, and can cause the app to crash if not handled correctly

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-10-19 23:28:32 +11:00
Oliver
8200140976
Label fix (#411)
* Cleanup label printing options

- Improve calls to setState()
- Should fix potential race conditions

* Use name if description not available

* Code simplification

* Fetch plugins even if the server reports "plugins enabled"

- Builtin plugins are still a thing!

* Use name *and* description to display label
2023-08-12 20:41:11 +10:00
Oliver
443e6e856c
Label print updates (#399)
* Allow download of printed label

* Add setting for controlling label printing

* Control display of label printing via setting

* Refactor label printing functionality

- Move to helpers.dart
- Will be used for other label types also

* Factor out request for label templates

* Add label printing support for part

* Support label printing for stock location

* update release notes
2023-07-16 00:51:11 +10:00
Oliver
138cae2da0
Search improvements (#388)
* Refactor search widget

- visual improvements
- Simplifications
- Add refresh button
- Improve search button

* Track original search

* fix BOM widget

* Update release notes
2023-06-30 22:42:59 +10:00
Oliver
925966c627
Barcode refactor (#381)
* Simplify barcode scanning interface

* Use consistent colors

* Fix notches

* Remove old comment
2023-06-24 21:06:08 +10:00
Oliver
b051aeccda
Barcode refactor (#363)
* Move barcode.dart

* Fix

* Refactoring barcode scanner code:

- Abstract the "controller" class (for future development)
- Break barcode scanning code out into multiple files
- Add CameraBarcodeController class (qr_code_scanner)

* Add await

* Make barcode scan delay configurable

* remove unused import

* Handle camera exceptions

* Improve sequencing for camera scanner

- Show loading overlay
- Prevent reload if view is no longer mounted

* Update docstring

* Update release notes
2023-06-11 09:41:26 +10:00
Oliver
bb781aaed5
Allow stock items to be created from top-level location (#338)
(cherry picked from commit fd85abf9d8e4760dd3ed793cf38d3bc5c29f17b8)
2023-04-21 21:24:06 +10:00
Oliver
232f721712
Fix duplicate serial number field (#334) 2023-04-20 20:47:40 +10:00
Oliver
b9ffabd561
Make notes widget "generic" (#327)
* Make notes widget "generic"

- No longer tied to the "part" model
- Will allow us to use it elsewhere

* Update release notes

* Add helper methods for checking model permissions

* Refactoring of permissions checks

* Add notes to the "purchase order" widget

* Fix typos

* remove bom tab from part view

* linting fixes
2023-04-19 21:57:28 +10:00
Oliver
612db9f194
Improvements for dark mode (#322)
* Action colors are now determined based on theme

* Fix unused import

* Update some more colors based on theme

* Updated release notes

* Better color choice

* Update for home screen

* Updates for app drawer

* remove unused import
2023-04-18 23:07:24 +10:00
Oliver
a8f87e2f5a
UX Overhaul (#300)
* Add "global actions" to title bar

* Implement actions

* Add "speed dial" action buttons

* tweak global action icons

* Refactor actions for "stock item" display

* Refactor "part" detail

* part category

* SupplierPart

* More updates

* Add BottomAppBar

* Add a global bottom app bar

* Move "edit" buttons back to the app bar

* tweaks

* Updates to drawer navigation menu

* home screen improvements

* text tweaks

* Fix appBarTitle for notifications widget

* Update "tabs" for category display

* Fix for attachment widget

* Update tabs for purchaseorder view

* Update part display

* Cleanup

* Add "BOM" tab to part detail widget

* Paginated list search cleanup

* Update release notes

* Update old function

* linting

* linting

* Tweaks to bottomappbar

- Increase icon size slightly
- Adjust "actions" icon
2023-04-08 23:59:11 +10:00
Oliver
9485d858eb
Add support for company attachments (#261)
* Add support for company attachments

- Add API version check
- Add new class
- Add link to company detail page
- Assorted refactoring

* linting fixes
2023-02-16 22:50:32 +11:00
Gustaf Järgren
6d4973deb8
Updated dependencies (#255)
* Bump android compile and target version, also flutter dependencies and resolve issues

* Remove deprecated splashscreen and added support for new Android 12 version.

* Updated workflow action versions and flutter sdk

* Resolved linting issues

* Resolved test binding issues
2023-02-11 00:24:06 +11:00
Oliver
f339ac249b
Adds pre-generated file for mapping icon names to icon hex values (#235)
* Adds pre-generated file for mapping icon names to icon hex values

* Remove unused import

* Simple method for converting icon string into useable data

* Add rendering for category list and location list

* Add custom icons to detail views

* Updated release notes
2022-12-18 00:06:11 +11:00
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
c5162c1947
Check if widget is mounted before calling setstate() (#193) 2022-07-29 20:01:06 +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
13ebaf43e1
List refactor (#179)
* Catch paginator bug if widget is disposed before request returns

* Refactoring paginated query widget

- Add option to enable / disable search filters

* Major refactor of paginated search widget

- Learned something new.. a state can access widget.<attribute>
- THIS CHANGES EVERTHING

* Preferences: Add code for tri-state values

- Also improve unit testing for preferences code

* Allow boolean form fields to be optionally tristate

* paginator: Allow custom boolean filters

* Remove outdated filtering preferences

* Refactor filter options

- Allow specification of more detailed options

* Add custom filters for "part" list

* filter tweaks

* Remove legacy "SublocationList" widget

* Add filtering option for locationlist

* Updates for stock location widget

* Refactor category display widget

* More widget refactoring

* Update main search widget

* Fix unit tests

* Improve filtering on BOM display page
2022-07-19 23:29:01 +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
9f6269375f linting 2022-05-10 01:19:38 +10:00
Oliver Walters
5ba887d59b Refactor locate function 2022-05-10 00:28:49 +10:00
Oliver Walters
03c6de8255 Stock location can now be identified via the app 2022-05-10 00:15:20 +10:00
Oliver Walters
2cdf927d98 linting fix 2022-05-02 10:36:03 +10:00
Oliver Walters
77b24ad9e4 Change path to translations 2022-05-02 09:59:08 +10:00
Oliver Walters
e620cfa515 Fix bug which prevented creation of stock item at top level location 2022-04-02 11:29:45 +11:00
Oliver Walters
2a6df373c5 Refactor imports 2022-03-29 19:54:19 +11:00
Oliver Walters
8ba4a9e678 Similar checks for other widgets 2022-03-26 18:38:10 +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
582f6bace3 Adds success messages after editing things 2022-03-10 16:59:27 +11:00
Oliver
d296d589d9 Update barcode / qrcode icons 2022-01-05 12:08:47 +11:00
Oliver
a5b52ea1cc Linting 2021-10-04 08:31:39 +11:00
Oliver
581d182464 Refactor StockList 2021-10-04 00:14:12 +11:00
Oliver
65180c7b2f Receive stock against purchase order line items 2021-10-03 01:33:16 +10:00
Oliver
be36811cb3 More linting again 2021-09-28 21:34:11 +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 Walters
760f88349d italic text 2021-08-16 15:09:19 +10:00
Oliver
687afc4eed Fixes:
- Hide action that doesn't work yet
- Change "parent category" to "parent location"
2021-08-16 11:50:12 +10:00
Oliver
3fb6b38930 Create new stock item 2021-08-15 14:44:40 +10:00
Oliver
2cb3e89a9a Cleanup 2021-08-10 20:59:07 +10:00
Oliver
1cadaa23d2 skeleton for creating new stock item in category 2021-08-10 17:27:00 +10:00
Oliver
76c0ab3d7f Create a new stock location 2021-08-10 17:21:12 +10:00
Oliver
6d0282519d API forms return the JSON data to the onSuccess function 2021-08-10 14:33:08 +10:00
Oliver Walters
d442206c12 change default user settings values 2021-08-09 23:53:18 +10:00
Oliver
d47a8db289 More code cleanup 2021-08-02 21:53:57 +10:00
Oliver
d6a2a41ab2 Enable multi-line text editing for API forms
- User can edit part notes
- User can edit stock item notes
2021-07-28 16:19:42 +10:00
Oliver
8a114d345f Display "action" items with color 2021-07-26 23:18:52 +10:00
Oliver
e8cb002e3c Edit StockLocation 2021-07-26 22:03:37 +10:00