2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-27 21:16:48 +00:00

Tweak logic for creating new line items with barcode (#618)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled

This commit is contained in:
Oliver 2025-02-21 22:20:17 +11:00 committed by GitHub
parent 3c425de8f7
commit 5672193ced
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,7 @@
### 0.18.0 - February 2025 ### 0.18.0 - February 2025
--- ---
- Adds ability to create new companies from the app - Adds ability to create new companies from the app
- Allow creation of line items against pending sales orders
- Updated translations - Updated translations
### 0.17.4 - January 2025 ### 0.17.4 - January 2025

View File

@ -191,7 +191,7 @@ class _SalesOrderDetailState extends RefreshableState<SalesOrderDetailWidget> {
} }
// Add line item // Add line item
if (widget.order.isInProgress && InvenTreeSOLineItem().canCreate) { if ((widget.order.isPending || widget.order.isInProgress) && InvenTreeSOLineItem().canCreate) {
actions.add( actions.add(
SpeedDialChild( SpeedDialChild(
child: Icon(TablerIcons.circle_plus, color: Colors.green), child: Icon(TablerIcons.circle_plus, color: Colors.green),
@ -220,7 +220,7 @@ class _SalesOrderDetailState extends RefreshableState<SalesOrderDetailWidget> {
List<SpeedDialChild> barcodeButtons(BuildContext context) { List<SpeedDialChild> barcodeButtons(BuildContext context) {
List<SpeedDialChild> actions = []; List<SpeedDialChild> actions = [];
if (widget.order.isInProgress && InvenTreeSOLineItem().canCreate) { if ((widget.order.isInProgress || widget.order.isPending) && InvenTreeSOLineItem().canCreate) {
actions.add( actions.add(
SpeedDialChild( SpeedDialChild(
child: Icon(Icons.barcode_reader), child: Icon(Icons.barcode_reader),

View File

@ -750,10 +750,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: open_filex name: open_filex
sha256: ba425ea49affd0a98a234aa9344b9ea5d4c4f7625a1377961eae9fe194c3d523 sha256: dcb7bd3d32db8db5260253a62f1564c02c2c8df64bc0187cd213f65f827519bd
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "4.5.0" version: "4.6.0"
package_config: package_config:
dependency: transitive dependency: transitive
description: description:

View File

@ -33,7 +33,7 @@ dependencies:
infinite_scroll_pagination: ^4.0.0 # Let the server do all the work! infinite_scroll_pagination: ^4.0.0 # Let the server do all the work!
intl: ^0.19.0 intl: ^0.19.0
one_context: ^4.0.0 # Dialogs without requiring context one_context: ^4.0.0 # Dialogs without requiring context
open_filex: ^4.5.0 # Open local files open_filex: ^4.6.0 # Open local files
package_info_plus: ^8.1.1 # App information introspection package_info_plus: ^8.1.1 # App information introspection
path: ^1.9.0 path: ^1.9.0
path_provider: ^2.1.3 # Local file storage path_provider: ^2.1.3 # Local file storage