2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

179 Commits

Author SHA1 Message Date
Oliver
a889c4adbe
Filter fix (#473)
* Add check for "null" top level locations and categories

* Fix API

- Top level location and category broken after API 174
- Ref: https://github.com/inventree/InvenTree/pull/6536
2024-02-28 16:23:46 +11:00
Oliver
1d41d229ca
Error report updates (#470)
* Prevent error reporting for certain status codes

- These error codes indicate that there is something wrong with the server setup
- Outside scope

* Bump version
2024-01-16 00:31:10 +11:00
Oliver
d152475de4
Catch errors (#469)
* Catch error comparing dropdown items

* Update version number and release notes

* Data conversion

* Catch error when loading image from network

* Suppress error reporting for statusCode -1
2024-01-10 23:24:40 +11:00
Oliver
4ef2e43bf3
Update version info (#467) 2023-12-14 00:14:29 +11:00
Oliver
edde9a9585
Update credits.md (#465) 2023-12-12 10:47:39 +11:00
Oliver
3ea5f8934c
Sales order allocation (#464)
* New string

* Typo fix

* Add model for SalesOrderShipment

* Add placeholder button to sales order item

* Create a new shipment from the sales order detail view

* Fix API URL

* Add paginated shipment list

* Upate colors

* Add API form for allocation of stock to sales order

* Build out sales order line detail widge

* Use unallocated quantity

* Update release notes

* linting fix
2023-11-27 22:51:20 +11:00
Oliver
1ec1a867d9
Add part to sales order via barcode scan (#461)
* Add part to sales order via barcode scan

* Update release notes

* Remove unused imports
2023-11-22 00:14:55 +11:00
Oliver
711034f402
Update app release notes (#459) 2023-11-21 00:13:40 +11:00
Oliver
0a85441131
Purchase order updates (#456)
* Support supplierpart in related field

* Manual add line item to purchase order

* Update release notes
2023-11-15 23:53:47 +11:00
Oliver
8cb5dd20f0
Barcode Scanning Updates (#448)
* Add new setting for controlling manual barcode scan

* Adds ability to pause and resume scanning with button

- Camera is still "live" during this

* Add UI elements

* Change scan setting

- "Continuous" scanning
- Enabled by default

* Update release notes

* Scanner updates

- Use "hold to pause" in continuous scan
- Use "tap to pause" in single scan

* Improve barcode scanning options

- Allow tap-to-pause or hold-to-pause
- More obvious user interactions

* Ensure consistent icon placement

* Remove separate setting for barcode pause mode
2023-11-14 07:39:06 +11:00
Oliver
bb87d0dd6d
Item deplete fix (#452)
* Add status code information to server error message

* More informative error message for 404

* Update release note
2023-11-12 23:43:52 +11:00
Oliver
c641cea369
Scanner wedge mode (#437)
* Add code_scan_listener package

* Implement wedge controller widget

* Update barcode settings widget

- Allow user to choose which barcode scanner to use

* Fix typo

* Select barcode scanner widget based on user preference

* Fix rendering issues for wedge controller

* Update release notes

* Add unit test for wedge scanner widget

- Required some tweaks to other code

* Use better library

- https://github.com/fuadreza/flutter_barcode_listener
- Fork of https://github.com/shaxxx/flutter_barcode_listener
- Properly handles key "case" issues (shift, essentially)
- Verified that it works correctly for multiple character types

* Local copy of code, rather than relying on package which is not available on pub.dev

* Fix unit test
2023-10-25 22:40:49 +11:00
Oliver
b6ab9d5da5
Refresh fix (#436)
* Add notificationPredicate to improve scroll-to-reload

Ref: https://api.flutter.dev/flutter/material/RefreshIndicator-class.html

* Add scroll-to-refresh for paginated list
2023-10-23 21:59:05 +11:00
Oliver
76b6191a67
Token auth (#434)
* Embed device platform information into token request

* Remove username and password from userProfile

* Display icon to show if profile has associated user token

* Remove username / password from login settings screen

* Refactor login procedure around token auth

* Refactoring

* Add profile login screen

- Username / password values are not stored
- Just to fetch api token

* Login with basic auth

* Pass profile to API when connecting

* Remove _BASE_URL accessor

- Fixes URL caching bug

* Add more context to login screen

* Add helper functions for unit tests

- Change default port to 8000 (makes testing easier with local inventree instance)

* api.dart handles basic auth now

* fix api_test.dart

* Further test improvements

* linting fixes

* Provide feedback when login fails

* More linting

* Record user details on login, and display in "about" widget

* Fix string lookup

* Add extra debug

* Fix auth values

* Fix user profile test
2023-10-23 01:29:16 +11:00
Oliver
0d44bd3799
Update release_notes.md (#432) 2023-10-19 23:35:13 +11:00
Oliver
6520873384
Translation fix (#424)
* Fix locale header

- Moving to new framework meant that Intl.getCurrentLocale was no longer working

* Update release notes

* Fix typo in pubspec.yaml

* Clear cached values when locale is changed

* Add extra context check
2023-09-20 08:37:48 +10:00
Oliver
dd12769a51
Stock transfer extra (#420)
* Add API version check

* Support "packaging" and "status" fields when performing a stock-transfer action

* Update release notes
2023-09-09 00:32:57 +10:00
Oliver Walters
38dfb03669 Update release notes 2023-08-12 20:59:15 +10:00
Oliver
d2a01a0286
Supplier part fix (#408)
* Change supplier part fields based on API version

* Display packaging info on supplier part page

* Icon consolidation

* Bump version number
2023-07-27 10:16:36 +10:00
Oliver
b044c53d91
More debug (#405)
* Extra options for sentry

* Use string comparison

* Catch error when constructing related field

* Include field name in debug
2023-07-23 09:55:08 +10:00
Oliver
7a11fdead8
Tweaks (#401)
* Improve collect_translations.py

* Cleanup

* Update translation support

* Update release notes
2023-07-17 21:17:23 +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
7ef6da4b2a
Add extra filtering options for stock items (#394) 2023-07-07 21:47:27 +10:00
Oliver
6fe23fa846
Update release notes (#392)
* Update release notes

* Fix typo
2023-07-05 22:21:12 +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
279c15509c
Pre fill location (#384)
* Pre-fill the location when transferring stock

* Update release notes
2023-06-28 21:25:15 +10:00
Oliver
08ebc34730
Bump version to 0.12.3 (#382)
* Bump version to 0.12.3

* Updates for ios

* Fix for float / decimal field

* Cleanup simpleNumberString

* Increment build number
2023-06-26 20:53:09 +10:00
Oliver
e9eb84eace
Stock display (#379)
* Display stock quantity more prominently

* Cleanup search widget

* Update for stock_detail widget

* More tweaks

* Change bottom bar icon

* Display boolean parameters appropriately

* Adds ability to edit part parameters

* Bump icon size a bit

* Improvements to filter options

- Allow filtering by "option" type
- To start with, filter stock by status code

* Remove debug message

* Remove getTriState method

- No longer needed
- Remove associated unit tests

* Adjust filters based on server API version

* Muted colors
2023-06-24 11:34:42 +10:00
Oliver
770d9cddb2
Add ability to filter stock by "in_stock" (#376) 2023-06-20 20:38:07 +10:00
Oliver
ca678c1c6f
Update version (#372)
* Update version

- Bump version to 0.12.2

* Tweak unit test
2023-06-13 21:28:38 +10:00
Oliver
9cc666d13e
Fix bug when list of tiles flows off screen (#370)
- Reimplement scrolling behaviour
2023-06-13 19:58:41 +10:00
Oliver
71bf3ad049
App orientation (#369)
* Configurable screen orientation

- Follow system (default)
- Fixed in portrait
- Fixed in landscape

* Fix for dialog
2023-06-13 19:53:50 +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
b733d00c37
Fix bug in purchase order form (#354)
- Remove "project_code" field if the server API does not yet support it
2023-05-18 20:55:50 +10:00
Oliver
4ba19fcab2
Increment to 0.12.0 (#347) 2023-04-29 21:06:12 +10:00
Oliver
383571707e
Stock test actions (#345)
* Use FAB for stock item test result

* Change long press to tap

* Add setting to control display of stock tests results

* Add question mark if no result recorded
2023-04-28 23:27:59 +10:00
Oliver
b7e806efee
PO Line Item Improvements (#340)
* Refactor thumbnail image

* Add paginated list of purchase order line items

* Refactor getBody() function

- No longer "have" to specify
- Can use getTiles for a simpler interface

* Add detail widget for polineitem

* add pricing info

* Receive line items via action button

* tweak color

* update release notes

* linting fixes
2023-04-21 23:15:00 +10:00
Oliver
e23a8b4d5e
Project code support (#336)
* Determine if project codes are supported

* Add helpers for boolean functions

* Adds helper methods for generic "model" class

- Will allow us to do some good refactoring

* Refactor the refactor

* Add debug support and getMap function

* Major refactoring for model data accessors

* Handle null values

* Add sentry reporting if key is used incorrectly

* Fix typo

* Refactor createFromJson function

* Add model for ProjectCode

* Display and edit project code for purchase orders
2023-04-21 21:12:22 +10:00
Oliver
232f721712
Fix duplicate serial number field (#334) 2023-04-20 20:47:40 +10:00
Oliver
1d6708fbca
Adjust colors of action buttons (#333)
Fixes https://github.com/inventree/inventree-app/issues/330
2023-04-20 20:47:24 +10:00
Oliver
ac57c53202
Bump version number to 0.11.6 (#332) 2023-04-20 18:55:22 +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
28ed1ed545
Improve supplier part detail screen (#326)
* Improve supplier part detail screen

* Update release notes
2023-04-19 21:17:24 +10:00
Oliver
87994a4912
Re-implement BOM link from part view (#325) 2023-04-19 21:07:56 +10:00
Oliver
347692bf70
Add transparent background image (#323)
- Fixes display of background image in dark mode
2023-04-19 20:54:52 +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
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
Oliver
b54565d1c3
Dark mode color fix (#318)
* Fix custom colors in API forms

* update release notes

* update build version
2023-04-16 22:07:01 +10:00
Oliver
a3d712d11d
Adds "dark mode" support (#317)
* Adds "dark mode" support

- Uses adaptive_theme package

* CI fixes

* More fixes

* Update release notes
2023-04-16 21:10:57 +10:00
Oliver
1d913084a6
Update release notes (#314) 2023-04-12 22:58:13 +10:00