Reports
This commit is contained in:
parent
31becc6a32
commit
37aa898cb2
|
|
@ -186,11 +186,16 @@ class ReportsScreen extends StatelessWidget {
|
||||||
.where((column) =>
|
.where((column) =>
|
||||||
getReportColumnType(column, context) !=
|
getReportColumnType(column, context) !=
|
||||||
ReportColumnType.number)
|
ReportColumnType.number)
|
||||||
.map((column) => DropdownMenuItem(
|
.map((column) {
|
||||||
child: Text(localization.lookup(column)),
|
final columnTitle =
|
||||||
|
state.company.getCustomFieldLabel(column);
|
||||||
|
return DropdownMenuItem(
|
||||||
|
child: Text(columnTitle.isEmpty
|
||||||
|
? localization.lookup(column)
|
||||||
|
: columnTitle),
|
||||||
value: column,
|
value: column,
|
||||||
))
|
);
|
||||||
.toList(),
|
}).toList(),
|
||||||
),
|
),
|
||||||
if (getReportColumnType(reportsUIState.group, context) ==
|
if (getReportColumnType(reportsUIState.group, context) ==
|
||||||
ReportColumnType.dateTime ||
|
ReportColumnType.dateTime ||
|
||||||
|
|
@ -561,19 +566,15 @@ class ReportResult {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (isValidDate(value)) {
|
} else if (isValidDate(value)) {
|
||||||
print('## date');
|
|
||||||
if (!ReportResult.matchDateTime(
|
if (!ReportResult.matchDateTime(
|
||||||
filter: filter,
|
filter: filter,
|
||||||
value: value,
|
value: value,
|
||||||
reportsUIState: reportsUIState,
|
reportsUIState: reportsUIState,
|
||||||
userCompany: userCompany)) {
|
userCompany: userCompany)) {
|
||||||
print('## SKIP');
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print('## string');
|
|
||||||
if (!ReportResult.matchString(filter: filter, value: value)) {
|
if (!ReportResult.matchString(filter: filter, value: value)) {
|
||||||
print('## SKIP');
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue