Add LineItem CSV import and fix Unit API
This commit is contained in:
Vendored
+7
-5
@@ -294,7 +294,8 @@ export interface LineItem {
|
||||
title: string,
|
||||
description: string,
|
||||
quantity: number,
|
||||
unit: string,
|
||||
unitId: number,
|
||||
unit: Unit,
|
||||
price: number,
|
||||
}
|
||||
|
||||
@@ -310,7 +311,8 @@ export function newLineItem(isSection: boolean): LineItem {
|
||||
title: '',
|
||||
description: '',
|
||||
quantity: 0,
|
||||
unit: 'Stunden',
|
||||
unitId: 2,
|
||||
unit: newUnit(),
|
||||
price: 93.75,
|
||||
}
|
||||
}
|
||||
@@ -361,9 +363,9 @@ export interface Unit {
|
||||
|
||||
export function newUnit(): Unit {
|
||||
return {
|
||||
id: 0,
|
||||
name: '',
|
||||
symbol: null,
|
||||
id: 2,
|
||||
name: 'Stunden',
|
||||
symbol: 'h',
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user