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