Add title sections to invoices backend and frontend, #41

This commit is contained in:
2025-11-19 10:12:45 +01:00
parent 250c4538aa
commit d1656b56a0
7 changed files with 80 additions and 31 deletions
+6 -4
View File
@@ -203,9 +203,10 @@ export function newBillingData() {
}
export interface LineItem {
id: number;
id: number,
invoiceId: number,
position: number;
position: number,
isSection: boolean,
type: string,
title: string,
description: string,
@@ -216,15 +217,16 @@ export interface LineItem {
export type LineItemType = LineItem
export function newLineItem(): LineItem {
export function newLineItem(isSection: boolean): LineItem {
return {
id: 0,
invoiceId: 0,
position: 0,
isSection: isSection,
type: 'service',
title: '',
description: '',
quantity: 1,
quantity: 0,
unit: 'Stunden',
price: 93.75,
}