Remove line break in line item details
This commit is contained in:
parent
8b3cd69f6f
commit
20b48f92ad
|
|
@ -18,7 +18,10 @@ InvoiceItemEntity convertTaskToInvoiceItem(
|
||||||
var notes = task.description;
|
var notes = task.description;
|
||||||
|
|
||||||
if (state.company.invoiceTaskTimelog) {
|
if (state.company.invoiceTaskTimelog) {
|
||||||
notes += '\n';
|
if (notes.trim().isNotEmpty) {
|
||||||
|
notes += '\n';
|
||||||
|
}
|
||||||
|
notes += '<span class="task-time-details">';
|
||||||
task
|
task
|
||||||
.getTaskTimes(sort: true)
|
.getTaskTimes(sort: true)
|
||||||
.where((time) => time.startDate != null && time.endDate != null)
|
.where((time) => time.startDate != null && time.endDate != null)
|
||||||
|
|
@ -29,12 +32,13 @@ InvoiceItemEntity convertTaskToInvoiceItem(
|
||||||
showTime: true, showDate: false, showSeconds: false);
|
showTime: true, showDate: false, showSeconds: false);
|
||||||
notes += '\n$start - $end';
|
notes += '\n$start - $end';
|
||||||
});
|
});
|
||||||
|
notes += '\n</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return InvoiceItemEntity().rebuild((b) => b
|
return InvoiceItemEntity().rebuild((b) => b
|
||||||
..taskId = task.id
|
..taskId = task.id
|
||||||
..typeId = InvoiceItemEntity.TYPE_TASK
|
..typeId = InvoiceItemEntity.TYPE_TASK
|
||||||
..notes = '<span class="task-time-details">$notes</span>'
|
..notes = notes
|
||||||
..cost = taskRateSelector(
|
..cost = taskRateSelector(
|
||||||
company: state.company,
|
company: state.company,
|
||||||
project: project,
|
project: project,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue