mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
Update company detail display page
This commit is contained in:
parent
488df25758
commit
98e0106a81
@ -48,6 +48,10 @@ class InvenTreeCompany extends InvenTreeModel {
|
|||||||
|
|
||||||
bool get isCustomer => (jsondata["is_customer"] ?? false) as bool;
|
bool get isCustomer => (jsondata["is_customer"] ?? false) as bool;
|
||||||
|
|
||||||
|
int get partSuppliedCount => (jsondata["parts_supplied"] ?? 0) as int;
|
||||||
|
|
||||||
|
int get partManufacturedCount => (jsondata["parts_manufactured"] ?? 0) as int;
|
||||||
|
|
||||||
// Request a list of purchase orders against this company
|
// Request a list of purchase orders against this company
|
||||||
Future<List<InvenTreePurchaseOrder>> getPurchaseOrders({bool? outstanding}) async {
|
Future<List<InvenTreePurchaseOrder>> getPurchaseOrders({bool? outstanding}) async {
|
||||||
|
|
||||||
|
@ -174,6 +174,17 @@ class _CompanyDetailState extends RefreshableState<CompanyDetailWidget> {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// TODO: Display "supplied parts" count (click through to list of supplier parts)
|
||||||
|
/*
|
||||||
|
tiles.add(
|
||||||
|
ListTile(
|
||||||
|
title: Text(L10().suppliedParts),
|
||||||
|
leading: FaIcon(FontAwesomeIcons.shapes),
|
||||||
|
trailing: Text("${company.partSuppliedCount}"),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if (company.isManufacturer) {
|
if (company.isManufacturer) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user