Add title sections to invoices backend and frontend, #41
This commit is contained in:
Vendored
+6
-4
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user