mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Pre-fill the "location" field when receiving an item
This commit is contained in:
parent
9745bcfdb6
commit
19fdac46a7
3 changed files with 19 additions and 12 deletions
|
|
@ -178,16 +178,10 @@ class InvenTreePOLineItem extends InvenTreeOrderLine {
|
|||
}
|
||||
|
||||
@override
|
||||
Map<String, String> defaultGetFilters() {
|
||||
return {
|
||||
"part_detail": "true",
|
||||
};
|
||||
}
|
||||
|
||||
@override
|
||||
Map<String, String> defaultListFilters() {
|
||||
Map<String, String> defaultFilters() {
|
||||
return {
|
||||
"part_detail": "true",
|
||||
"order_detail": "true",
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -228,6 +222,8 @@ class InvenTreePOLineItem extends InvenTreeOrderLine {
|
|||
|
||||
int get destinationId => getInt("destination");
|
||||
|
||||
Map<String, dynamic> get orderDetail => getMap("order_detail");
|
||||
|
||||
Map<String, dynamic> get destinationDetail => getMap("destination_detail");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue