Quantity column in Invoice Item report shows currency symbol
This commit is contained in:
parent
77c54e186f
commit
046213c44d
|
|
@ -180,6 +180,8 @@ ReportResult lineItemReport(
|
||||||
|
|
||||||
if (value.runtimeType == bool) {
|
if (value.runtimeType == bool) {
|
||||||
row.add(invoice.getReportBool(value: value));
|
row.add(invoice.getReportBool(value: value));
|
||||||
|
} else if (column == InvoiceItemReportFields.quantity) {
|
||||||
|
row.add(invoice.getReportDouble(value: value));
|
||||||
} else if (value.runtimeType == double || value.runtimeType == int) {
|
} else if (value.runtimeType == double || value.runtimeType == int) {
|
||||||
row.add(invoice.getReportDouble(
|
row.add(invoice.getReportDouble(
|
||||||
value: value, currencyId: client.currencyId));
|
value: value, currencyId: client.currencyId));
|
||||||
|
|
|
||||||
|
|
@ -1491,6 +1491,11 @@ class ReportNumberValue extends ReportElement {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String renderText(BuildContext context, String column) {
|
String renderText(BuildContext context, String column) {
|
||||||
|
if (currencyId == null) {
|
||||||
|
return formatNumber(value, context,
|
||||||
|
formatNumberType: FormatNumberType.double);
|
||||||
|
}
|
||||||
|
|
||||||
return formatNumber(value, context,
|
return formatNumber(value, context,
|
||||||
currencyId: currencyId, formatNumberType: formatNumberType);
|
currencyId: currencyId, formatNumberType: formatNumberType);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue