Navigation...

This commit is contained in:
Hillel Coren 2020-05-20 14:27:07 +03:00
parent 233cff33d0
commit 67d31e681e
2 changed files with 6 additions and 2 deletions

View File

@ -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) {

View File

@ -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),