feat: refactor sales invoice services and introduce pagination and filtering
- 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.
This commit is contained in:
@@ -657,6 +657,7 @@ export async function onResult(
|
||||
where: { id: invoice_id },
|
||||
data: {
|
||||
last_tsp_status: attemptUpdatedData.status,
|
||||
last_attempt_no: attemptUpdatedData.attempt_no,
|
||||
},
|
||||
})
|
||||
return updatedInvoice
|
||||
|
||||
Reference in New Issue
Block a user