phronCare/Core/Interfaces/IQuoteDom.cs
Leandro Hernan Rojas 09090bef21
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 3m24s
Add Controller QuoteCreateFull
2025-05-06 21:00:03 -03:00

48 lines
1.7 KiB
C#

using Domain.Entities;
using Domain.Generics;
namespace Models.Interfaces
{
public interface IQuoteDom
{
#region Presupuestos
Task<PagedResult<EQuoteHeader>> GetAllQuotesAsync(int page = 1, int pageSize = 50);
Task<EQuoteHeader?> GetQuoteByIdAsync(int id);
Task<IEnumerable<EQuoteHeader>> GetQuotesByCustomerAsync(int customerId);
Task<PagedResult<EQuoteHeader>> SearchQuotesAsync(
int? customerId,
string? quoteNumber,
int? professionalId,
int? institutionId,
int? patientId,
DateTime? issueDateFrom,
DateTime? issueDateTo,
string? status,
int page = 1,
int pageSize = 50);
Task<EQuoteHeader> CreateQuoteAsync(EQuoteHeader quote, int formSeriesId);
Task UpdateQuoteAsync(EQuoteHeader quote);
Task DeleteQuoteAsync(int id);
#endregion
#region Ajustes
Task<IEnumerable<EQuoteAdjustment>> GetAdjustmentsByQuoteIdAsync(int quoteId);
Task<EQuoteAdjustment> AddAdjustmentAsync(EQuoteAdjustment adjustment);
Task UpdateAdjustmentAsync(EQuoteAdjustment adjustment);
Task DeleteAdjustmentAsync(int adjustmentId);
#endregion
#region Impuestos
Task<IEnumerable<EQuoteTax>> GetTaxesByQuoteIdAsync(int quoteId);
Task<EQuoteTax> AddTaxAsync(EQuoteTax tax);
Task UpdateTaxAsync(EQuoteTax tax);
Task DeleteTaxAsync(int taxId);
#endregion
#region Exportación
Task<byte[]> ExportFilteredQuotesToExcelAsync(QuoteSearchParams searchParams);
Task<string> CreateFullQuoteAsync(EQuoteHeader quote, int formSeriesId);
#endregion
}
}