refactor: restructure suppliers module and update DTOs

- Removed old supplier DTOs and controller, replacing them with new implementations.
- Introduced new CreateSupplierDto and UpdateSupplierDto in the index directory.
- Updated SuppliersController to handle new routes and methods.
- Implemented SuppliersService with updated logic for creating, finding, updating, and removing suppliers.
- Added new invoices module with corresponding controller and service for handling invoice-related operations.
- Created new DTOs for handling receipt payments and updated the service to manage payment creation and retrieval.
- Updated Prisma migrations to reflect changes in the database schema, including dropping unnecessary columns.
This commit is contained in:
2025-12-27 20:34:00 +03:30
parent d98507fc1f
commit af9695e23c
27 changed files with 636 additions and 575 deletions
+3 -1
View File
@@ -11,6 +11,8 @@ import { BanksModule } from './modules/banks/banks.module'
import { CardexModule } from './modules/cardex/cardex.module'
import { InventoriesModule } from './modules/inventories/inventories.module'
import { PosModule } from './modules/pos/pos.module'
import { PurchaseReceiptPaymentsModule } from './modules/purchase-receipt-payments/purchase-receipt-payments.module'
import { SuppliersModule } from './modules/suppliers/suppliers.module'
import { PrismaModule } from './prisma/prisma.module'
import { ProductBrandsModule } from './product-brands/product-brands.module'
import { ProductCategoriesModule } from './product-categories/product-categories.module'
@@ -24,7 +26,6 @@ import { SalesInvoicesModule } from './sales-invoices/sales-invoices.module'
import { StockAdjustmentsModule } from './stock-adjustments/stock-adjustments.module'
import { StockBalanceModule } from './stock-balance/stock-balance.module'
import { StockMovementsModule } from './stock-movements/stock-movements.module'
import { SuppliersModule } from './suppliers/suppliers.module'
import { UsersModule } from './users/users.module'
@Module({
@@ -42,6 +43,7 @@ import { UsersModule } from './users/users.module'
InventoriesModule,
PurchaseReceiptsModule,
PurchaseReceiptItemsModule,
PurchaseReceiptPaymentsModule,
SalesInvoicesModule,
SalesInvoiceItemsModule,
InventoryTransfersModule,