Correct quantity formatting in reports
This commit is contained in:
parent
d9182bc329
commit
c3d15336b7
|
|
@ -195,7 +195,10 @@ ReportResult lineItemReport(
|
|||
row.add(invoice.getReportBool(value: value));
|
||||
} else if (value.runtimeType == double || value.runtimeType == int) {
|
||||
row.add(invoice.getReportDouble(
|
||||
value: value, currencyId: client.currencyId));
|
||||
value: value,
|
||||
currencyId: column == InvoiceItemReportFields.quantity
|
||||
? null
|
||||
: client.currencyId));
|
||||
} else {
|
||||
row.add(invoice.getReportString(value: value));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,7 +191,10 @@ ReportResult lineItemReport(
|
|||
row.add(invoice.getReportBool(value: value));
|
||||
} else if (value.runtimeType == double || value.runtimeType == int) {
|
||||
row.add(invoice.getReportDouble(
|
||||
value: value, currencyId: client.currencyId));
|
||||
value: value,
|
||||
currencyId: column == QuoteItemReportFields.quantity
|
||||
? null
|
||||
: client.currencyId));
|
||||
} else {
|
||||
row.add(invoice.getReportString(value: value));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue