2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00
Commit Graph

310 Commits

Author SHA1 Message Date
72a78291b2 Order extra lines (#632)
* Define classes for extra line item

* Display PO extra line items

- Also, some refactoring

* Support extra line items for sales order

* linting fixes

* Update release notes
2025-04-15 20:49:05 +10:00
25d7ac9189 Start date (#631)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* Support "start_date" for PurchaseOrder and SalesOrder

* Update release notes

* Add form fields
2025-04-15 15:45:09 +10:00
5ec86c4ade Tweak required roles (#630)
- Ref: https://github.com/inventree/InvenTree/pull/9506
2025-04-15 15:45:03 +10:00
1a3f48f48c Company create (#610)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* API: refactor checkPermission

- Rename to checkRole (actually what it is doing)
- Permission check will be incoming

* Add checkPermission function for API

* Create a new company

* Bump release notes

* Cleanup

* Fix
2025-02-08 10:36:26 +11:00
854ef95fbf Order responsible (#602)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* Bump release notes and version

* Display responsible owner for purchase order

* Display responsible owner for sales order

* Display order completion date
2025-01-20 23:22:10 +11:00
1363f7ee3a Edit attachment (#598)
Some checks failed
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
Android / build (push) Has been cancelled
* Edit attachment

- Allow editing of attachments once updloaed

* Update release notes

* Remove duplicate func
2025-01-11 17:11:17 +11:00
aac13ed5d6 Stock expiry (#590)
* Add stock expiry getters

* refactor date getters

* Display expiry information

* Update release notes

* Remove unused import
2024-12-23 22:25:55 +11:00
bc44b99d43 Label printing fix (#587)
* Handle blank URL provided for file download

* Improved printing checks

* Auto-select the correct printer
2024-12-23 09:57:13 +11:00
665de2bd5a Refactor search widget (#578)
* Refactor search widget

* Cleanup

* Fix for unallocated stock count

* Fix race condition

- Only upate results which match the current search term
- Prevents issues with multiple "competing" queries

* Fix for stock quantity

* Fix icon credits

* Tweak app bar color

* Cleanup visual stylinh
2024-12-14 17:29:35 +11:00
524c5469f1 [refactor] Scan improvements (#577)
* Handle error on unexpected barcode response

* Add ManufacturerPart detail view

* Support barcode scanning for manufacturer part

* Refactoring for null checks

* Ignore selected errors in sentry

* Fix API implementation for ManufacturerPart

* Update release notes

* More error handling

* Decode quantity betterer

* Refactoring

* Add option to confirm checkin details

* Improve response handlign

* Cleanup

* Remove unused imports

* Fix async function

* Fix for assigning custom barcode

* Handle barcode scan result for company

* Fix

* Adjust scan priority

* Refactoring MODEL_TYPE

- Use instead of duplicated const strings

* @override fix
2024-12-14 15:24:23 +11:00
676de0dfe9 Display part name 2024-12-11 22:23:52 +11:00
e44d1ea5b4 Refactor loading overlay 2024-12-11 21:45:43 +11:00
d5a9f4310e Refactoring 2024-12-11 21:35:56 +11:00
19fdac46a7 Pre-fill the "location" field when receiving an item 2024-12-11 21:33:06 +11:00
e2a688315d Display "destination" in purchase order detail
(cherry picked from commit d0e4bf0246412938050f5de5a01b0b987cf9a0a2)
2024-12-11 16:07:28 +11:00
08e01a729b Updates
(cherry picked from commit 94125667d9cdd1bd486aa58a2c4908c143b47225)
2024-12-11 16:07:22 +11:00
6f5fc1d8a9 Test result fixes (#564)
* Fix association of test results to templates

* Fixes

* Remove unused vars
2024-12-06 10:59:49 +11:00
d4b2204baf Sales order shipment progress (#560)
- Display progress bar for sales order page
2024-12-05 17:09:57 +11:00
2e798b1bd1 Order picture action (#557)
* Add "take picture" to purchase order detail

* Rename uploaded images

* Provide prefix when uploading images

* Add similar functionality for "sales order" detail

* Add new settings screens

* Control camera shortcut

* Bump release notes
2024-12-05 14:38:53 +11:00
20e454d287 StockItem Updates (#550)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* bump version

* Add new helpers for StockItem

* Navigate to sales order from stock item

* Navigate to customer (if specified)

* linting fix
2024-11-20 16:47:04 +11:00
d990508237 Update Requirements (#541)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* Update package requiremenst

* github workflow updates

* ios build updates

* Theme adjustments

* Further updates

* Fix typo

* Deprecated imperative apply of Flutter's Gradle plugins

Ref: https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply

* Refactor wedge scanner

* Add context checks

* Adjust behaviour if testing

* Further refactoring

* Moar checks

* Logic fix

* Fix for wedge scanner test

* Fix for barcode processing

* Fix

* Yet another fix
2024-10-01 12:25:11 +10:00
c52885fc6b Attachments fix (#528)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* Bump version

* Fix for viewing and uploading attachment files

- Make sure we use the correct attribute!
2024-08-25 12:14:57 +10:00
c9cad2f89f Change from fontawesome to tabler icons (#516)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* Change from fontawesome to tabler icons

- Consistent with the frontend

* Cleanup conflicts

* Use double quotes

* remove unused import

* Update release notes

* Migrate some google icons to tabler icons

* Icon update

* Properly support display of custom icons

* Fix lookup
2024-08-08 19:44:44 +10:00
42de3fd7d4 Order hold (#515)
Some checks are pending
Android / build (push) Waiting to run
CI / test (push) Waiting to run
iOS / build (push) Waiting to run
* Add support for "ON_HOLD" status for orders

* Bump version and release notes

* Fix import
2024-08-07 21:11:40 +10:00
e837394495 Modern attachments (#505)
* Minimum API version is now 100

* Remove old API features

- Anything below API v100 no longer supported

* Reefactor attachment widget to support modern attachment API

* Filter and display attachments correctly

* Refactor
2024-06-11 23:16:01 +10:00
3c0bca276d Label printing fix (#489)
* Add check for modern label printing interface

* Update getLabelTemplates

* Fix typo

* Refactor / simplify

* Revert parameter type

* Update version number and release notes

* Refactor label printing function

- Will require some cleanup in the future
- Still needs testing

* Fix for modern printing

* Typo fix
2024-05-12 20:41:02 +10:00
4499f3e00e Barcode workflow (#485)
* Refactor stock barcode operations into new file

* Add setting to control confirmation of stock transfer actions

* Update details when scannign stock item

* Confirm movement when moving items into location

* Cleanup
2024-04-18 22:53:21 +10:00
a889417fe0 Company active filters (#484)
* Add support for "active" status for:

- SupplierPart
- Company

* Add filtering options

* Fix default value

* Add inactive tiles

* Update text and release notes
2024-04-18 21:48:45 +10:00
b02dc5bac7 Simplify DSN file (#475)
* Add checks for empty sentry DSN

* Add default DSN key

* Fix CI workflows
2024-03-06 21:09:06 +11:00
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
571b491846 Sales order barcode (#466)
* Add barcode handler for allocating stock to sales order

* Refactor sales order allocation fields

* Improve barcode handling

* Handle barcode scan from sales order line detail view

* Remove debug statements
2023-12-13 23:49:55 +11:00
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
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
eb1be30df4 Fix display of sales order completion status (#460) 2023-11-21 08:23:09 +11:00
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
bdd5470e68 Sales order support (#438)
* Add new models for SalesOrder

- Create generic Order and OrderLine models with common functionality

* Refactor

- Move some widgets around
- Cleanup directory structure

* Add link to home screen and nav drawer

* Add SalesOrder list widget

* Linting fixes

* Fix string

* Refactor PurchaseOrderDetailWidget

* Tweaks to existing code

* linting

* Fixes for drawer widget

* Add "detail" page for SalesOrder

* Add more tiles to SalesOrder detail

* Allow editing of salesorder

* add list filters for sales orders

* Display list of line items

* Customer updates

- Display customer icon on home screen
- Fetch sales orders for customer detail page

* Cleanup company detail view

* Create new sales order from list

* Stricter typing for formFields method

* Create new PurchaseOrder and SalesOrder from company deatil

* Status code updates

- Add function for name comparison
- Remove hard-coded values

* Update view permission checks for home widget

* Add ability to manually add SalesOrderLineItem

* Add nice progress bar widgets

* Display detail view for sales order line item

* edit SalesOrderLineItem

* Fix unused import

* Hide "shipped items" tab

- Will be added in a future update
2023-11-12 23:13:22 +11:00
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
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
2babf27db5 Sentry fix (#395)
* Extra sentry diagnostics

* Fix unit test

* Unit test updates

* More unit test updates
2023-07-07 21:38:04 +10:00
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
925966c627 Barcode refactor (#381)
* Simplify barcode scanning interface

* Use consistent colors

* Fix notches

* Remove old comment
2023-06-24 21:06:08 +10:00
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
770d9cddb2 Add ability to filter stock by "in_stock" (#376) 2023-06-20 20:38:07 +10:00
21ace1ae02 Package updates (#365)
* Update dart version

* Update flutter version in workflow

* Update packages

* Updates to android workflow

* Specify dart verrsion in CI

* Run flutter upgrade

* Helps to check which workflow is actually running I guess

* Disable linting check

* linting fixes

* linting

* Bug fix for paginator
2023-06-12 22:52:07 +10:00
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
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
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
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
232f721712 Fix duplicate serial number field (#334) 2023-04-20 20:47:40 +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