94 lines
1.5 KiB
TypeScript
94 lines
1.5 KiB
TypeScript
export type Account = {
|
|
id: number
|
|
number: number
|
|
description: string
|
|
}
|
|
|
|
export type Balance = {
|
|
accountNumber: string
|
|
description: string
|
|
} & Record<number, number>
|
|
|
|
export interface Entry {
|
|
id: number
|
|
journal: string
|
|
number: number
|
|
amount: number
|
|
description: string
|
|
transactionDate: string
|
|
entryDate: string
|
|
transactions: {
|
|
accountNumber: number
|
|
description: string
|
|
amount: number
|
|
}[]
|
|
}
|
|
|
|
export type FinancialYear = {
|
|
year: number
|
|
startDate: string
|
|
endDate: string
|
|
}
|
|
|
|
export type Invoice = {
|
|
id: number
|
|
fiskenNumber?: number
|
|
phmNumber?: number
|
|
invoiceDate: string
|
|
dueDate: string
|
|
invoiceNumber: number
|
|
amount: number
|
|
files?: { filename: string }[]
|
|
transactions?: {
|
|
accountNumber: number
|
|
amount: number
|
|
description: number
|
|
entryId: number
|
|
}[]
|
|
}
|
|
|
|
export type Journal = {
|
|
id: number
|
|
identifier: string
|
|
}
|
|
|
|
export type Object = {
|
|
id: number
|
|
dimensionName: string
|
|
name: string
|
|
}
|
|
|
|
export type Result = {
|
|
accountNumber: number
|
|
description?: string
|
|
} & Record<number, number>
|
|
|
|
export type Supplier = {
|
|
id: number
|
|
name: string
|
|
}
|
|
|
|
export interface Transaction {
|
|
accountNumber: number
|
|
description: string
|
|
amount: number
|
|
entryId: number
|
|
}
|
|
|
|
export interface TransactionFull extends Transaction {
|
|
transactionDate: string
|
|
invoiceId: number
|
|
entryDescription: string
|
|
}
|
|
|
|
export interface Route {
|
|
path: string
|
|
name: string
|
|
title: string
|
|
component: (args: ANY) => ANY
|
|
cache?: boolean
|
|
nav?: boolean
|
|
routes?: Route[]
|
|
locales?: ANY[]
|
|
}
|