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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final localization = AppLocalization.of(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); final listUIState = state.getListState(entityType);
Widget message = SizedBox(); Widget message = SizedBox();
if (onClearPressed != null && listUIState.filterEntityId != null) { if (onClearPressed != null && listUIState.filterEntityId != null) {

View File

@ -57,7 +57,11 @@ class InvoiceOverview extends StatelessWidget {
EntityHeader( EntityHeader(
entity: invoice, entity: invoice,
statusColor: color, 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, label: localization.totalAmount,
value: value:
formatNumber(invoice.amount, context, clientId: invoice.clientId), formatNumber(invoice.amount, context, clientId: invoice.clientId),