Navigation...
This commit is contained in:
parent
233cff33d0
commit
67d31e681e
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue