Connect CalDAV todos to DB-Items, finish todo component and add it to pipeline items
This commit is contained in:
@@ -159,11 +159,14 @@ const createInvoice = async () => {
|
||||
let billedEntries: TimesheetEntry[] = []
|
||||
let invoice: Invoice = newInvoice()
|
||||
invoice.customer = null
|
||||
invoice.customerId = null
|
||||
invoice.billingData = null
|
||||
timesheets.value[selectedTimesheet.value].entries?.forEach((entry => {
|
||||
|
||||
timesheets.value[selectedTimesheet.value].entries?.forEach(((entry, i) => {
|
||||
if (entry.billed) return
|
||||
|
||||
let lineItem: LineItem = newLineItem(false)
|
||||
lineItem.position = i + 1
|
||||
lineItem.title = toLocalDate(entry.date)
|
||||
lineItem.description = entry.description || ''
|
||||
lineItem.quantity = entry.hours
|
||||
|
||||
Reference in New Issue
Block a user