mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Tweak logic for creating new line items with barcode (#618)
This commit is contained in:
parent
3c425de8f7
commit
5672193ced
4 changed files with 6 additions and 5 deletions
|
|
@ -191,7 +191,7 @@ class _SalesOrderDetailState extends RefreshableState<SalesOrderDetailWidget> {
|
|||
}
|
||||
|
||||
// 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<SalesOrderDetailWidget> {
|
|||
List<SpeedDialChild> barcodeButtons(BuildContext context) {
|
||||
List<SpeedDialChild> actions = [];
|
||||
|
||||
if (widget.order.isInProgress && InvenTreeSOLineItem().canCreate) {
|
||||
if ((widget.order.isInProgress || widget.order.isPending) && InvenTreeSOLineItem().canCreate) {
|
||||
actions.add(
|
||||
SpeedDialChild(
|
||||
child: Icon(Icons.barcode_reader),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue