Implemented new set article mechanism for unscannable articles
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:hl_lieferservice/dto/contact_person.dart';
|
||||
import 'package:hl_lieferservice/dto/delivery.dart';
|
||||
import 'package:hl_lieferservice/dto/image_note_response.dart';
|
||||
@ -297,11 +296,7 @@ class Delivery implements Comparable<Delivery> {
|
||||
List<Article> getDeliveredArticles() {
|
||||
return articles
|
||||
.where(
|
||||
(article) {
|
||||
debugPrint("Scannable: ${article.scannable}");
|
||||
|
||||
return article.scannedAmount > 0 || !article.scannable;
|
||||
},
|
||||
(article) => article.scannedAmount > 0 || !article.scannable,
|
||||
)
|
||||
.toList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user