@deboxsoft/accounting-api
Advanced tools
Comparing version 1.5.0-beta.69 to 1.5.0-beta.70
{ | ||
"name": "@deboxsoft/accounting-api", | ||
"version": "1.5.0-beta.69", | ||
"version": "1.5.0-beta.70", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -59,5 +59,5 @@ import type { CollectionParams } from "@deboxsoft/module-core"; | ||
description: z.ZodString; | ||
debitAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
bddAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
taxAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
creditAccounts: z.ZodArray<z.ZodObject<{ | ||
paymentAccounts: z.ZodArray<z.ZodObject<{ | ||
id: z.ZodString; | ||
@@ -85,3 +85,3 @@ amount: z.ZodEffects<z.ZodNumber, number, number>; | ||
dateEnd?: number | Date | null | undefined; | ||
debitAccount?: string | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -94,9 +94,9 @@ taxRate?: number | null | undefined; | ||
userId: string; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
@@ -109,3 +109,3 @@ posting: boolean; | ||
dateEnd?: number | Date | null | undefined; | ||
debitAccount?: string | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -119,9 +119,9 @@ taxRate?: number | null | undefined; | ||
userId: string; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
@@ -162,5 +162,5 @@ }>; | ||
description: z.ZodOptional<z.ZodString>; | ||
debitAccount: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>; | ||
bddAccount: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>; | ||
taxAccount: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>; | ||
creditAccounts: z.ZodOptional<z.ZodArray<z.ZodObject<{ | ||
paymentAccounts: z.ZodOptional<z.ZodArray<z.ZodObject<{ | ||
id: z.ZodString; | ||
@@ -191,11 +191,11 @@ amount: z.ZodEffects<z.ZodNumber, number, number>; | ||
dateEnd?: number | Date | null | undefined; | ||
debitAccount?: string | null | undefined; | ||
paymentAccounts?: { | ||
id: string; | ||
amount: number; | ||
}[] | undefined; | ||
expenseAccount?: string | undefined; | ||
dateStart?: number | Date | undefined; | ||
monthLife?: number | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
creditAccounts?: { | ||
id: string; | ||
amount: number; | ||
}[] | undefined; | ||
amortizationAccount?: string | undefined; | ||
@@ -214,11 +214,11 @@ taxRate?: number | null | undefined; | ||
dateEnd?: number | Date | null | undefined; | ||
debitAccount?: string | null | undefined; | ||
paymentAccounts?: { | ||
id: string; | ||
amount: number; | ||
}[] | undefined; | ||
expenseAccount?: string | undefined; | ||
dateStart?: number | Date | undefined; | ||
monthLife?: number | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
creditAccounts?: { | ||
id: string; | ||
amount: number; | ||
}[] | undefined; | ||
amortizationAccount?: string | undefined; | ||
@@ -265,5 +265,5 @@ taxRate?: number | null | undefined; | ||
description: z.ZodString; | ||
debitAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
bddAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
taxAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
creditAccounts: z.ZodArray<z.ZodObject<{ | ||
paymentAccounts: z.ZodArray<z.ZodObject<{ | ||
id: z.ZodString; | ||
@@ -296,3 +296,3 @@ amount: z.ZodEffects<z.ZodNumber, number, number>; | ||
dateEnd?: number | Date | null | undefined; | ||
debitAccount?: string | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -312,9 +312,9 @@ taxRate?: number | null | undefined; | ||
}[]; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
@@ -332,3 +332,3 @@ posting: boolean; | ||
dateEnd?: number | Date | null | undefined; | ||
debitAccount?: string | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -349,12 +349,12 @@ taxRate?: number | null | undefined; | ||
}[]; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
}>; | ||
export declare const calcAmortization: ({ creditAccounts, monthLife, taxRate, amortizationCount }: Bdd) => { | ||
export declare const calcAmortization: ({ paymentAccounts, monthLife, taxRate, amortizationCount }: Bdd) => { | ||
tax: number; | ||
@@ -376,5 +376,5 @@ total: number; | ||
description: z.ZodString; | ||
debitAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
bddAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
taxAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
creditAccounts: z.ZodArray<z.ZodObject<{ | ||
paymentAccounts: z.ZodArray<z.ZodObject<{ | ||
id: z.ZodString; | ||
@@ -402,3 +402,3 @@ amount: z.ZodEffects<z.ZodNumber, number, number>; | ||
dateEnd?: number | Date | null | undefined; | ||
debitAccount?: string | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -411,9 +411,9 @@ taxRate?: number | null | undefined; | ||
userId: string; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
@@ -426,3 +426,3 @@ posting: boolean; | ||
dateEnd?: number | Date | null | undefined; | ||
debitAccount?: string | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -436,9 +436,9 @@ taxRate?: number | null | undefined; | ||
userId: string; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
@@ -450,3 +450,3 @@ }>, BddRepoInput, { | ||
dateEnd?: number | Date | null | undefined; | ||
debitAccount?: string | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -460,9 +460,9 @@ taxRate?: number | null | undefined; | ||
userId: string; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
@@ -478,5 +478,5 @@ }>; | ||
description: z.ZodString; | ||
debitAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
bddAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
taxAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
creditAccounts: z.ZodArray<z.ZodObject<{ | ||
paymentAccounts: z.ZodArray<z.ZodObject<{ | ||
id: z.ZodString; | ||
@@ -507,2 +507,3 @@ amount: z.ZodEffects<z.ZodNumber, number, number>; | ||
dateEnd?: number | Date | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -516,9 +517,9 @@ taxRate?: number | null | undefined; | ||
debitAccount: string; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
@@ -531,2 +532,3 @@ posting: boolean; | ||
dateEnd?: number | Date | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -541,9 +543,9 @@ taxRate?: number | null | undefined; | ||
debitAccount: string; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
@@ -573,2 +575,3 @@ }>, { | ||
dateEnd?: number | Date | null | undefined; | ||
bddAccount?: string | null | undefined; | ||
taxAccount?: string | null | undefined; | ||
@@ -583,9 +586,9 @@ taxRate?: number | null | undefined; | ||
debitAccount: string; | ||
paymentAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
expenseAccount: string; | ||
dateStart: number | Date; | ||
monthLife: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
amortizationAccount: string; | ||
@@ -592,0 +595,0 @@ }>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
298304
7785