mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Extract part ID from supplier part
This commit is contained in:
parent
e7f0fec0cf
commit
f9b688cdab
1 changed files with 2 additions and 0 deletions
|
|
@ -101,6 +101,8 @@ class InvenTreeSupplierPart extends InvenTreeModel {
|
||||||
|
|
||||||
String get MPN => jsondata['MPN'] ?? '';
|
String get MPN => jsondata['MPN'] ?? '';
|
||||||
|
|
||||||
|
int get partId => jsondata['part'] ?? -1;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||||
var part = InvenTreeSupplierPart.fromJson(json);
|
var part = InvenTreeSupplierPart.fromJson(json);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue