- Added SharedSaleInvoicePaginationService for handling pagination logic.
- Introduced SharedSaleInvoiceFilterService to centralize filtering logic for sales invoices.
- Updated SalesInvoicesService to utilize the new pagination and filtering services.
- Refactored findAll methods in SalesInvoicesService, CustomerSaleInvoicesService, and other related services to support pagination and filtering.
- Enhanced DTOs for sales invoice filtering to extend shared filter properties.
- Updated module imports to include new services.
- Cleaned up redundant code related to filtering and pagination across various services.
feat: Add economic code and guild information to sales invoice selection
fix: Update error messages for invoice access and creation to use "صورتحساب"
fix: Change error messages in SaleInvoicesService to use "صورتحساب" instead of "فاکتور"
fix: Update error messages in SalesInvoicesService for not found cases to use "صورتحساب"
fix: Modify TSP service to handle invoice updates and error messages consistently with "صورتحساب"
fix: Update common DTO descriptions to refer to "صورتحساب" instead of "فاکتور"
fix: Adjust utility functions to handle invoice references and error messages with "صورتحساب"
feat: add cache invalidation method for POS middleware
feat: implement Redis caching in POS middleware for improved performance
feat: refactor sales invoice DTOs for POS to include correction functionality
feat: extend SalesInvoicesController to handle invoice corrections and returns
feat: update SalesInvoicesService to support invoice correction and return operations
feat: enhance TSP provider correction functionality with new DTOs and utility methods
fix: improve error handling and logging in Nama provider switch adapter
refactor: streamline invoice payload building in TSP provider utilities
- Updated `findAll` method in `CustomersController` to accept filtering parameters.
- Implemented filtering logic in `CustomersService` to retrieve customers based on type and search query.
- Added `PosCustomerFilterDto` for query validation.
- Updated customer-related DTOs to make fields optional and added length validation where necessary.
- Modified customer-related logic in `sales-invoice-tsp.utils.ts` to accommodate new DTO structure.
- Added unique constraints to `customer_individuals` and `customer_legal` tables in the database migration.
- Removed commented-out code in `PosMiddleware` for cleaner codebase.
- Set default value for `is_default_guild_good` to false in `OwnedGoodsService`.
- Deleted SalesInvoiceItemsService as it was not implemented.
- Changed variable declaration from `const` to `let` in SalesInvoicesService for sales invoice creation.
- Updated response handling after sending to TSP provider in SalesInvoicesService.
- Renamed payload properties in TspProvider DTOs for clarity.
- Enhanced error handling in SalesInvoiceTspSwitchService for unsupported providers.
- Refactored SalesInvoiceTspService to utilize utility functions for payload building and sending.
- Updated PrismaService to increase connection limit and utilize dynamic options.
- Added new migration scripts to update database schema for sale_invoice_tsp_attempts.
- Introduced utility functions for building payloads and handling responses in sales invoice processing.