Reports
This commit is contained in:
parent
7ef0d432ab
commit
d3e0e7c531
|
|
@ -88,7 +88,7 @@ ReportResult profitAndLossReport(
|
||||||
|
|
||||||
switch (column) {
|
switch (column) {
|
||||||
case ProfitAndLossReportFields.type:
|
case ProfitAndLossReportFields.type:
|
||||||
value = EntityType.payment.toString();
|
value = EntityType.payment;
|
||||||
break;
|
break;
|
||||||
case ProfitAndLossReportFields.client:
|
case ProfitAndLossReportFields.client:
|
||||||
value = client?.displayName;
|
value = client?.displayName;
|
||||||
|
|
@ -143,7 +143,9 @@ ReportResult profitAndLossReport(
|
||||||
skip = true;
|
skip = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value.runtimeType == bool) {
|
if (value.runtimeType == EntityType) {
|
||||||
|
row.add(payment.getReportEntityType());
|
||||||
|
} else if (value.runtimeType == bool) {
|
||||||
row.add(payment.getReportBool(value: value));
|
row.add(payment.getReportBool(value: value));
|
||||||
} else if (value.runtimeType == double || value.runtimeType == int) {
|
} else if (value.runtimeType == double || value.runtimeType == int) {
|
||||||
row.add(payment.getReportDouble(
|
row.add(payment.getReportDouble(
|
||||||
|
|
@ -171,7 +173,7 @@ ReportResult profitAndLossReport(
|
||||||
|
|
||||||
switch (column) {
|
switch (column) {
|
||||||
case ProfitAndLossReportFields.type:
|
case ProfitAndLossReportFields.type:
|
||||||
value = EntityType.expense.toString();
|
value = EntityType.expense;
|
||||||
break;
|
break;
|
||||||
case ProfitAndLossReportFields.client:
|
case ProfitAndLossReportFields.client:
|
||||||
value = client?.displayName;
|
value = client?.displayName;
|
||||||
|
|
@ -226,7 +228,9 @@ ReportResult profitAndLossReport(
|
||||||
skip = true;
|
skip = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value.runtimeType == bool) {
|
if (value.runtimeType == EntityType) {
|
||||||
|
row.add(expense.getReportEntityType());
|
||||||
|
} else if (value.runtimeType == bool) {
|
||||||
row.add(expense.getReportBool(value: value));
|
row.add(expense.getReportBool(value: value));
|
||||||
} else if (value.runtimeType == double || value.runtimeType == int) {
|
} else if (value.runtimeType == double || value.runtimeType == int) {
|
||||||
row.add(expense.getReportDouble(
|
row.add(expense.getReportDouble(
|
||||||
|
|
|
||||||
|
|
@ -646,7 +646,7 @@ class ReportResult {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (value.runtimeType == EntityType) {
|
} else if (value.runtimeType == EntityType) {
|
||||||
return filter == localization.lookup('$value');
|
return filter.toLowerCase() == '$value'.toLowerCase();
|
||||||
} else if (isValidDate(value)) {
|
} else if (isValidDate(value)) {
|
||||||
if (!ReportResult.matchDateTime(
|
if (!ReportResult.matchDateTime(
|
||||||
filter: filter,
|
filter: filter,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue