Improve dates in the reports
This commit is contained in:
parent
a066805d05
commit
df75d9af01
|
|
@ -1273,7 +1273,10 @@ class ReportResult {
|
||||||
}
|
}
|
||||||
value = value + ' (' + values['count'].floor().toString() + ')';
|
value = value + ' (' + values['count'].floor().toString() + ')';
|
||||||
} else if (columnType == ReportColumnType.number) {
|
} else if (columnType == ReportColumnType.number) {
|
||||||
value = formatNumber(values[column], context);
|
value = formatNumber(values[column], context,
|
||||||
|
formatNumberType: column == 'quantity'
|
||||||
|
? FormatNumberType.double
|
||||||
|
: FormatNumberType.money);
|
||||||
} else if (columnType == ReportColumnType.duration) {
|
} else if (columnType == ReportColumnType.duration) {
|
||||||
value = formatDuration(Duration(seconds: values[column].toInt()));
|
value = formatDuration(Duration(seconds: values[column].toInt()));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -557,6 +557,7 @@ GroupTotals calculateReportTotals({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cell is ReportNumberValue &&
|
if (cell is ReportNumberValue &&
|
||||||
|
cell.currencyId != null &&
|
||||||
cell.currencyId != company.currencyId) {
|
cell.currencyId != company.currencyId) {
|
||||||
double cellValue = cell.value;
|
double cellValue = cell.value;
|
||||||
var rate = cell.exchangeRate;
|
var rate = cell.exchangeRate;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue