feat(bank-accounts): add transaction retrieval and update service logic
- Implemented a new endpoint to fetch transactions for a specific bank account. - Refactored the bank account service to streamline transaction handling and balance calculations. - Removed the bank account balance table and adjusted related logic in workflows and services. - Enhanced transaction mapping to include references to sales and purchase records.
This commit is contained in:
@@ -58,7 +58,6 @@ export const ModelName = {
|
||||
BankBranch: 'BankBranch',
|
||||
BankAccount: 'BankAccount',
|
||||
BankAccountTransaction: 'BankAccountTransaction',
|
||||
BankAccountBalance: 'BankAccountBalance',
|
||||
Inventory: 'Inventory',
|
||||
InventoryBankAccount: 'InventoryBankAccount',
|
||||
PosAccount: 'PosAccount',
|
||||
@@ -199,15 +198,6 @@ export const BankAccountTransactionScalarFieldEnum = {
|
||||
export type BankAccountTransactionScalarFieldEnum = (typeof BankAccountTransactionScalarFieldEnum)[keyof typeof BankAccountTransactionScalarFieldEnum]
|
||||
|
||||
|
||||
export const BankAccountBalanceScalarFieldEnum = {
|
||||
bankAccountId: 'bankAccountId',
|
||||
balance: 'balance',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type BankAccountBalanceScalarFieldEnum = (typeof BankAccountBalanceScalarFieldEnum)[keyof typeof BankAccountBalanceScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
|
||||
Reference in New Issue
Block a user