mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-07 15:52:08 +00:00
Add endpoint for StockLocation model
This commit is contained in:
1 parent
df0b3c796c
commit
0bf02dad64
1 file changed
+21
@@ -19,4 +19,25 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class InvenTreeStockLocation extends InvenTreeModel {
|
||||||
|
@override
|
||||||
|
String URL = "stock/location/";
|
||||||
|
|
||||||
|
InvenTreeStockLocation() : super();
|
||||||
|
|
||||||
|
InvenTreeStockLocation.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||||
|
|
||||||
|
var loc = InvenTreeStockLocation.fromJson(json);
|
||||||
|
|
||||||
|
return loc;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user