feat: implement bank accounts, branches, and banks modules with CRUD operations

- Added BankAccountsController, BankAccountsService, and related DTOs for managing bank accounts.
- Implemented BankBranchesController, BankBranchesService, and related DTOs for managing bank branches.
- Created BanksController and BanksService for retrieving bank information.
- Integrated Prisma for database operations across all modules.
- Added response mapping for consistent API responses.
This commit is contained in:
2025-12-24 21:24:59 +03:30
parent 89c57a69c1
commit cbe51b9343
105 changed files with 18512 additions and 11840 deletions
+15 -29
View File
@@ -10,22 +10,14 @@
*/
export const OrderStatus = {
pending: 'pending',
reject: 'reject',
done: 'done'
PENDING: 'PENDING',
REJECT: 'REJECT',
DONE: 'DONE'
} as const
export type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus]
export const paymentMethod = {
cash: 'cash',
card: 'card'
} as const
export type paymentMethod = (typeof paymentMethod)[keyof typeof paymentMethod]
export const MovementType = {
IN: 'IN',
OUT: 'OUT',
@@ -45,28 +37,22 @@ export const MovementReferenceType = {
export type MovementReferenceType = (typeof MovementReferenceType)[keyof typeof MovementReferenceType]
export const stock_cardex_type = {
IN: 'IN',
OUT: 'OUT',
ADJUST: 'ADJUST'
export const payment_method_type = {
CASH: 'CASH',
CARD: 'CARD',
BANK: 'BANK',
CHECK: 'CHECK',
OTHER: 'OTHER'
} as const
export type stock_cardex_type = (typeof stock_cardex_type)[keyof typeof stock_cardex_type]
export type payment_method_type = (typeof payment_method_type)[keyof typeof payment_method_type]
export const stock_movements_view_type = {
IN: 'IN',
OUT: 'OUT',
ADJUST: 'ADJUST'
} as const
export type stock_movements_view_type = (typeof stock_movements_view_type)[keyof typeof stock_movements_view_type]
export const stock_movements_view_referenceType = {
export const ledgerSourceType = {
PURCHASE: 'PURCHASE',
SALES: 'SALES',
ADJUSTMENT: 'ADJUSTMENT'
PAYMENT: 'PAYMENT',
ADJUSTMENT: 'ADJUSTMENT',
REFUND: 'REFUND'
} as const
export type stock_movements_view_referenceType = (typeof stock_movements_view_referenceType)[keyof typeof stock_movements_view_referenceType]
export type ledgerSourceType = (typeof ledgerSourceType)[keyof typeof ledgerSourceType]