feat: add initial balance support to accounts, enhancing account management and balance calculations across components
This commit is contained in:
@@ -11,6 +11,7 @@ export const accountService = {
|
||||
type: data.type,
|
||||
folderId: data.folderId,
|
||||
balance: data.balance,
|
||||
initialBalance: data.initialBalance ?? 0,
|
||||
currency: data.currency,
|
||||
lastImport: data.lastImport,
|
||||
externalUrl: data.externalUrl,
|
||||
@@ -25,6 +26,7 @@ export const accountService = {
|
||||
type: created.type as Account["type"],
|
||||
folderId: created.folderId,
|
||||
balance: created.balance,
|
||||
initialBalance: created.initialBalance,
|
||||
currency: created.currency,
|
||||
lastImport: created.lastImport,
|
||||
externalUrl: created.externalUrl,
|
||||
@@ -44,6 +46,7 @@ export const accountService = {
|
||||
type: data.type,
|
||||
folderId: data.folderId,
|
||||
balance: data.balance,
|
||||
initialBalance: data.initialBalance,
|
||||
currency: data.currency,
|
||||
lastImport: data.lastImport,
|
||||
externalUrl: data.externalUrl,
|
||||
@@ -58,6 +61,7 @@ export const accountService = {
|
||||
type: updated.type as Account["type"],
|
||||
folderId: updated.folderId,
|
||||
balance: updated.balance,
|
||||
initialBalance: updated.initialBalance,
|
||||
currency: updated.currency,
|
||||
lastImport: updated.lastImport,
|
||||
externalUrl: updated.externalUrl,
|
||||
|
||||
@@ -36,6 +36,7 @@ export const bankingService = {
|
||||
type: a.type as Account["type"],
|
||||
folderId: a.folderId,
|
||||
balance: a.balance,
|
||||
initialBalance: a.initialBalance,
|
||||
currency: a.currency,
|
||||
lastImport: a.lastImport,
|
||||
externalUrl: a.externalUrl,
|
||||
|
||||
Reference in New Issue
Block a user