using Domain.Dtos.Sales; using Domain.Entities; using Domain.Generics; namespace Models.Interfaces { public interface IPhSSalesDocumentRepository { Task> SearchAsync( int? customerId, string? customerText, int? quoteId, int? documentType, int? status, DateTime? issueDateFrom, DateTime? issueDateTo, int page = 1, int pageSize = 50); Task CreateAsync(ESalesDocument entity); Task CreateFromDeliveryNotesAsync(ESalesDocument entity, IReadOnlyCollection deliveryNoteIds); Task> GetDeliveryNotesForSalesDocumentAsync(IReadOnlyCollection deliveryNoteIds); Task> SearchDeliveryNoteCandidatesAsync( int? customerId, string? customerText, string? deliveryNoteNumber, int? quoteId, DateTime? issueDateFrom, DateTime? issueDateTo, int page = 1, int pageSize = 50); Task GetDtoByIdAsync(int id); } }