mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
More cleanup
This commit is contained in:
parent
d2ce3fadf1
commit
83e29777c2
12 changed files with 23 additions and 60 deletions
|
|
@ -272,9 +272,6 @@ class StockItemBarcodeAssignmentHandler extends BarcodeHandler {
|
|||
final InvenTreeStockItem item;
|
||||
|
||||
StockItemBarcodeAssignmentHandler(this.item) {
|
||||
if (item == null) {
|
||||
throw new AssertionError("null StockItem passed to barcode handler");
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -354,11 +351,7 @@ class StockItemScanIntoLocationHandler extends BarcodeHandler {
|
|||
|
||||
final InvenTreeStockItem item;
|
||||
|
||||
StockItemScanIntoLocationHandler(this.item) {
|
||||
if (item == null) {
|
||||
throw new AssertionError("null StockItem passed to StockItemScanIntoLocationHandler");
|
||||
}
|
||||
}
|
||||
StockItemScanIntoLocationHandler(this.item);
|
||||
|
||||
@override
|
||||
String getOverlayText(BuildContext context) => L10().barcodeScanLocation;
|
||||
|
|
@ -419,11 +412,7 @@ class StockLocationScanInItemsHandler extends BarcodeHandler {
|
|||
|
||||
final InvenTreeStockLocation location;
|
||||
|
||||
StockLocationScanInItemsHandler(this.location) {
|
||||
if (location == null) {
|
||||
throw new AssertionError("null StockLocation passed to StockLocationScanInItemsHandler");
|
||||
}
|
||||
}
|
||||
StockLocationScanInItemsHandler(this.location);
|
||||
|
||||
@override
|
||||
String getOverlayText(BuildContext context) => L10().barcodeScanItem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue