mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Update status codes (#307)
* Extra error info when connecting to server * Adds accessors for various types of status codes * Cleanup / refactor stock status codes - No longer need to duplicate these on the app * improvements to purchase order list - Add option to show closed orders - Render order status * Add purchase order status to order detail widget * Update release notes * Cleanup for imports * linting fixes
This commit is contained in:
parent
efb7ff4170
commit
26b86a2194
10 changed files with 214 additions and 80 deletions
|
|
@ -211,6 +211,8 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||
@override
|
||||
Future<void> request(BuildContext context) async {
|
||||
|
||||
await api.StockStatus.load();
|
||||
|
||||
stockShowHistory = await InvenTreeSettingsManager().getValue(INV_STOCK_SHOW_HISTORY, false) as bool;
|
||||
|
||||
final bool result = widget.item.pk > 0 && await widget.item.reload();
|
||||
|
|
@ -565,9 +567,9 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||
subtitle: Text("${widget.item.partDescription}"),
|
||||
leading: InvenTreeAPI().getImage(widget.item.partImage),
|
||||
trailing: Text(
|
||||
widget.item.statusLabel(),
|
||||
api.StockStatus.label(widget.item.status),
|
||||
style: TextStyle(
|
||||
color: widget.item.statusColor
|
||||
color: api.StockStatus.color(widget.item.status),
|
||||
)
|
||||
),
|
||||
onTap: () async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue