diff --git a/assets/release_notes.md b/assets/release_notes.md index debb55d3..395cf90f 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -1,6 +1,7 @@ ### 0.18.0 - February 2025 --- - Adds ability to create new companies from the app +- Allow creation of line items against pending sales orders - Updated translations ### 0.17.4 - January 2025 diff --git a/lib/widget/order/sales_order_detail.dart b/lib/widget/order/sales_order_detail.dart index 26f372cd..dcdefe9f 100644 --- a/lib/widget/order/sales_order_detail.dart +++ b/lib/widget/order/sales_order_detail.dart @@ -191,7 +191,7 @@ class _SalesOrderDetailState extends RefreshableState { } // Add line item - if (widget.order.isInProgress && InvenTreeSOLineItem().canCreate) { + if ((widget.order.isPending || widget.order.isInProgress) && InvenTreeSOLineItem().canCreate) { actions.add( SpeedDialChild( child: Icon(TablerIcons.circle_plus, color: Colors.green), @@ -220,7 +220,7 @@ class _SalesOrderDetailState extends RefreshableState { List barcodeButtons(BuildContext context) { List actions = []; - if (widget.order.isInProgress && InvenTreeSOLineItem().canCreate) { + if ((widget.order.isInProgress || widget.order.isPending) && InvenTreeSOLineItem().canCreate) { actions.add( SpeedDialChild( child: Icon(Icons.barcode_reader), diff --git a/pubspec.lock b/pubspec.lock index 2a5876ec..582ddd5a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -750,10 +750,10 @@ packages: dependency: "direct main" description: name: open_filex - sha256: ba425ea49affd0a98a234aa9344b9ea5d4c4f7625a1377961eae9fe194c3d523 + sha256: dcb7bd3d32db8db5260253a62f1564c02c2c8df64bc0187cd213f65f827519bd url: "https://pub.dev" source: hosted - version: "4.5.0" + version: "4.6.0" package_config: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 8473d69f..ef926b5b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -33,7 +33,7 @@ dependencies: infinite_scroll_pagination: ^4.0.0 # Let the server do all the work! intl: ^0.19.0 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 path: ^1.9.0 path_provider: ^2.1.3 # Local file storage