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:
@@ -408,10 +408,10 @@ export const PurchaseReceiptItemScalarFieldEnum = {
|
||||
count: 'count',
|
||||
fee: 'fee',
|
||||
total: 'total',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
receiptId: 'receiptId',
|
||||
productId: 'productId'
|
||||
productId: 'productId',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type PurchaseReceiptItemScalarFieldEnum = (typeof PurchaseReceiptItemScalarFieldEnum)[keyof typeof PurchaseReceiptItemScalarFieldEnum]
|
||||
@@ -423,10 +423,9 @@ export const PurchaseReceiptPaymentsScalarFieldEnum = {
|
||||
paymentMethod: 'paymentMethod',
|
||||
type: 'type',
|
||||
bankAccountId: 'bankAccountId',
|
||||
inventoryId: 'inventoryId',
|
||||
description: 'description',
|
||||
payedAt: 'payedAt',
|
||||
receiptId: 'receiptId',
|
||||
payedAt: 'payedAt',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
|
||||
Reference in New Issue
Block a user