2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 12:15:31 +00:00
Commit Graph

106 Commits

Author SHA1 Message Date
27f2fd4826 Refactor the refactor 2023-04-21 21:09:02 +10:00
8cc767d019 Adds helper methods for generic "model" class
- Will allow us to do some good refactoring
2023-04-21 21:09:02 +10:00
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
d926686a89 Stock history fix (#320)
* Improves quantity parsing from

* Add paginated history widget

* Refactor stock history widget as a paginated widget

* Allow paginated result list to handle results returned as list

- Some API endpoints (older ones most likely) don't paginate results correctly

* Fix code layout

* Render user information in "history" widget (not quantity)

* Hide filter button

* Update release notes

* remove unused import
2023-04-18 22:46:08 +10:00
164295c3e2 Code Cleanup (#312)
* Open email and telephone links for company

* Cleanup imports
2023-04-11 22:38:57 +10:00
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
9791fb7d23 Update plugin metadata endpoint (#251)
* Update plugin metadata endpoint

* Update release notes
2023-01-27 23:47:48 +11:00
d69ffc8de0 Update notes for building under iOS (#238) 2022-12-21 23:00:10 +11:00
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
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
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
dacbf880da Improve error handling and reporting (#190)
* Prevent duplicate reporting of errors to sentry

* Prevent error message upload on some server error codes

* Filter out some common errors we are not interested in
2022-07-26 15:57:16 +10:00
19ad3153e4 Remove and fix some TODO entries (#188) 2022-07-20 14:18:07 +10:00
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
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
10783cd1c4 Refactor PartAttachmentWidget
- Now displays generic attachments
- Augment the InvenTreeAttachment class to "know" about its model reference
2022-06-04 00:12:44 +10:00
dbc024491c Pass URL through to the showServeError method
- Can decide, based on the URL, if we want to show an error
2022-06-03 20:23:59 +10:00
941ee5e172 Prevent "old" search results from mucking up the displayed data
- Only accept results if the search term has not changed
2022-05-19 21:06:20 +10:00
e2ed80f2d0 Add barcode scan context 2022-05-10 18:26:55 +10:00
610f6533d0 Refactor sentry error reporting for model class 2022-05-10 18:16:15 +10:00
059b69ce99 Adds code to requeest global setting from server
- Settings are individually cached for 5 minutes
- For now, use it for the purchase order reference prefix
2022-05-09 21:41:34 +10:00
da3b668e8c Adds class representing global and user settings 2022-05-09 20:53:12 +10:00
349eca4533 Save datetime since last reload 2022-05-09 20:51:27 +10:00
2a6df373c5 Refactor imports 2022-03-29 19:54:19 +11:00
ea724fcf5f Allow user to manually remove (delete) a StockItem 2022-03-26 18:33:02 +11:00
126fde3944 Fix comment string 2022-03-26 11:29:50 +11:00
34fd68229d Launch a dialog to print a label 2022-03-25 23:37:14 +11:00
de45e18359 Request and cache plugin information when connecting to the server 2022-03-25 22:48:21 +11:00
0c9c7b2a68 Defines a class for representing an InvenTreePlugin instance 2022-03-25 22:25:27 +11:00
761aa0f861 v0.5.3
- Updated translations
- Improved error catching
2021-11-29 21:02:29 +11:00
581d182464 Refactor StockList 2021-10-04 00:14:12 +11:00
b656eb7b43 Show supplier results 2021-10-03 23:47:59 +11:00
1ca3732a33 Work on refactoring search page
- Implement generic "search" count preview
- Nice and speedy!
2021-10-03 23:37:15 +11:00
2f8d02b0be API_Form: Allow customizable icon
- Also fixes for API search
2021-10-02 22:31:28 +10:00
be36811cb3 More linting again 2021-09-28 21:34:11 +10:00
77bac9af36 Yet more linting 2021-09-28 20:35:19 +10:00
ad0cc36540 More linting work 2021-09-28 20:24:55 +10:00
c1152ee286 Fixes for type casting 2021-09-28 17:53:14 +10:00
8bca501fc4 Allow file fields for api forms 2021-08-16 20:22:05 +10:00
e31158a966 Download attachments and open
- Uses package "open_file"
2021-08-15 22:09:11 +10:00
a5edb84723 Upload part attachnents
- Select file from device
- Take picture with camera
2021-08-15 17:27:25 +10:00
ffd423cf9a Add model for InvenTreePartAttachment 2021-08-15 16:49:59 +10:00
232535d166 Reduce error reporting for model requests 2021-08-11 08:14:40 +10:00
6d0282519d API forms return the JSON data to the onSuccess function 2021-08-10 14:33:08 +10:00
67ccbf64b5 Adds convenience function for editing model 2021-08-10 08:40:36 +10:00
f8e007e07d Merge branch 'master' into create-part 2021-08-09 12:37:30 +10:00
8f02092731 Add extra error reporting information in sentry errors 2021-08-09 08:22:36 +10:00
2dfe8921eb Fix URL getters 2021-08-09 07:51:46 +10:00
acecec113e Show snack when encountering a server error 2021-08-05 08:54:02 +10:00
ca35f44dc8 Error fixes / catches
- Barcode scan returns invalid response
- model.reload() returns invalid response
- model.create() returns invalid response
- model.get() returns invalid response
2021-08-05 08:37:11 +10:00