mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
PO Line Item Improvements (#340)
* Refactor thumbnail image * Add paginated list of purchase order line items * Refactor getBody() function - No longer "have" to specify - Can use getTiles for a simpler interface * Add detail widget for polineitem * add pricing info * Receive line items via action button * tweak color * update release notes * linting fixes
This commit is contained in:
parent
2c5ceeabdb
commit
b7e806efee
23 changed files with 442 additions and 343 deletions
|
|
@ -71,11 +71,7 @@ class _BillOfMaterialsState extends RefreshableState<BillOfMaterialsWidget> {
|
|||
return Column(
|
||||
children: [
|
||||
ListTile(
|
||||
leading: InvenTreeAPI().getImage(
|
||||
widget.part.thumbnail,
|
||||
width: 32,
|
||||
height: 32,
|
||||
),
|
||||
leading: InvenTreeAPI().getThumbnail(widget.part.thumbnail),
|
||||
title: Text(widget.part.fullname),
|
||||
subtitle: Text(widget.isParentComponent ? L10().billOfMaterials : L10().usedInDetails),
|
||||
trailing: Text(L10().quantity),
|
||||
|
|
@ -153,11 +149,7 @@ class _PaginatedBomListState extends PaginatedSearchState<PaginatedBomList> {
|
|||
simpleNumberString(bomItem.quantity),
|
||||
style: TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
leading: InvenTreeAPI().getImage(
|
||||
subPart?.thumbnail ?? "",
|
||||
width: 40,
|
||||
height: 40,
|
||||
),
|
||||
leading: InvenTreeAPI().getThumbnail(subPart?.thumbnail ?? ""),
|
||||
onTap: subPart == null ? null : () async {
|
||||
|
||||
showLoadingOverlay(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue