Navigation...
This commit is contained in:
parent
233cff33d0
commit
67d31e681e
|
|
@ -131,8 +131,8 @@ class DatatableHeader extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final localization = AppLocalization.of(context);
|
||||
final state = StoreProvider.of<AppState>(context).state;
|
||||
/*
|
||||
final state = StoreProvider.of<AppState>(context).state;
|
||||
final listUIState = state.getListState(entityType);
|
||||
Widget message = SizedBox();
|
||||
if (onClearPressed != null && listUIState.filterEntityId != null) {
|
||||
|
|
|
|||
|
|
@ -57,7 +57,11 @@ class InvoiceOverview extends StatelessWidget {
|
|||
EntityHeader(
|
||||
entity: invoice,
|
||||
statusColor: color,
|
||||
statusLabel: localization.lookup('${invoice.entityType}_status_${invoice.statusId}'),
|
||||
statusLabel: invoice.statusId == kInvoiceStatusDraft
|
||||
? null
|
||||
: invoice.isPastDue
|
||||
? localization.pastDue
|
||||
: localization.lookup(stauses[invoice.statusId]),
|
||||
label: localization.totalAmount,
|
||||
value:
|
||||
formatNumber(invoice.amount, context, clientId: invoice.clientId),
|
||||
|
|
|
|||
Loading…
Reference in New Issue