mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 20:16:25 +00:00
Order extra lines (#632)
* Define classes for extra line item * Display PO extra line items - Also, some refactoring * Support extra line items for sales order * linting fixes * Update release notes
This commit is contained in:
parent
25d7ac9189
commit
72a78291b2
34 changed files with 642 additions and 193 deletions
|
|
@ -11,7 +11,6 @@ import "package:inventree/inventree/model.dart";
|
|||
|
||||
import "package:inventree/widget/paginator.dart";
|
||||
import "package:inventree/widget/refreshable_state.dart";
|
||||
import "package:inventree/widget/company/company_detail.dart";
|
||||
|
||||
|
||||
/*
|
||||
|
|
@ -48,13 +47,7 @@ class _CompanyListWidgetState extends RefreshableState<CompanyListWidget> {
|
|||
|
||||
if (data.containsKey("pk")) {
|
||||
var company = InvenTreeCompany.fromJson(data);
|
||||
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => CompanyDetailWidget(company)
|
||||
)
|
||||
);
|
||||
company.goToDetailPage(context);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
@ -137,7 +130,7 @@ class _CompanyListState extends PaginatedSearchState<PaginatedCompanyList> {
|
|||
subtitle: Text(company.description),
|
||||
leading: InvenTreeAPI().getThumbnail(company.image),
|
||||
onTap: () async {
|
||||
Navigator.push(context, MaterialPageRoute(builder: (context) => CompanyDetailWidget(company)));
|
||||
company.goToDetailPage(context);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue