Files
GestionIntegralWeb/Backend/GestionIntegral.Api/Data/Repositories/Contables/INotaCreditoDebitoRepository.cs

24 lines
1.1 KiB
C#
Raw Normal View History

using GestionIntegral.Api.Models.Contables;
using System;
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
namespace GestionIntegral.Api.Data.Repositories.Contables
{
public interface INotaCreditoDebitoRepository
{
Task<IEnumerable<NotaCreditoDebito>> GetAllAsync(
DateTime? fechaDesde, DateTime? fechaHasta,
string? destino, int? idDestino, int? idEmpresa, string? tipoNota);
Task<NotaCreditoDebito?> GetByIdAsync(int idNota);
Task<NotaCreditoDebito?> CreateAsync(NotaCreditoDebito nuevaNota, int idUsuario, IDbTransaction transaction);
Task<bool> UpdateAsync(NotaCreditoDebito notaAActualizar, int idUsuario, IDbTransaction transaction);
Task<bool> DeleteAsync(int idNota, int idUsuario, IDbTransaction transaction);
Task<IEnumerable<(NotaCreditoDebitoHistorico Historial, string NombreUsuarioModifico)>> GetHistorialAsync(
DateTime? fechaDesde, DateTime? fechaHasta,
int? idUsuarioModifico, string? tipoModificacion,
int? idNotaOriginal); // Para filtrar por una nota específica
}
}