diff --git a/lib/ui/reports/invoice_item_report.dart b/lib/ui/reports/invoice_item_report.dart index 1f96dbedc..6e1f8e87b 100644 --- a/lib/ui/reports/invoice_item_report.dart +++ b/lib/ui/reports/invoice_item_report.dart @@ -180,6 +180,8 @@ ReportResult lineItemReport( if (value.runtimeType == bool) { 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) { row.add(invoice.getReportDouble( value: value, currencyId: client.currencyId)); diff --git a/lib/ui/reports/reports_screen.dart b/lib/ui/reports/reports_screen.dart index a862bd562..1ac2b5ae5 100644 --- a/lib/ui/reports/reports_screen.dart +++ b/lib/ui/reports/reports_screen.dart @@ -1491,6 +1491,11 @@ class ReportNumberValue extends ReportElement { @override String renderText(BuildContext context, String column) { + if (currencyId == null) { + return formatNumber(value, context, + formatNumberType: FormatNumberType.double); + } + return formatNumber(value, context, currencyId: currencyId, formatNumberType: formatNumberType); }