mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-02-04 13:53:18 +00:00
Edit StockLocation
This commit is contained in:
parent
bc713dfdcd
commit
e8cb002e3c
2 changed files with 33 additions and 35 deletions
|
|
@ -6,6 +6,7 @@ import 'package:dropdown_search/dropdown_search.dart';
|
|||
import 'package:inventree/api.dart';
|
||||
import 'package:inventree/app_colors.dart';
|
||||
import 'package:inventree/inventree/part.dart';
|
||||
import 'package:inventree/inventree/stock.dart';
|
||||
import 'package:inventree/widget/fields.dart';
|
||||
import 'package:inventree/l10.dart';
|
||||
|
||||
|
|
@ -261,6 +262,20 @@ class APIFormField {
|
|||
style: TextStyle(fontWeight: selected ? FontWeight.bold : FontWeight.normal),
|
||||
) : null,
|
||||
);
|
||||
case "stocklocation":
|
||||
|
||||
var loc = InvenTreeStockLocation.fromJson(item);
|
||||
|
||||
return ListTile(
|
||||
title: Text(
|
||||
loc.pathstring,
|
||||
style: TextStyle(fontWeight: selected && extended ? FontWeight.bold : FontWeight.normal)
|
||||
),
|
||||
subtitle: extended ? Text(
|
||||
loc.description,
|
||||
style: TextStyle(fontWeight: selected ? FontWeight.bold : FontWeight.normal),
|
||||
) : null,
|
||||
);
|
||||
default:
|
||||
return ListTile(
|
||||
title: Text(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue