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)
This commit is contained in:
parent
3c425de8f7
commit
5672193ced
@ -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
|
||||||
|
@ -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),
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user