2025-05-23 15:47:39 -03:00
|
|
|
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);
|
2025-06-09 19:37:07 -03:00
|
|
|
Task<IEnumerable<(NotaCreditoDebitoHistorico Historial, string NombreUsuarioModifico)>> GetHistorialAsync(
|
|
|
|
|
DateTime? fechaDesde, DateTime? fechaHasta,
|
|
|
|
|
int? idUsuarioModifico, string? tipoModificacion,
|
|
|
|
|
int? idNotaOriginal); // Para filtrar por una nota específica
|
2025-05-23 15:47:39 -03:00
|
|
|
}
|
|
|
|
|
}
|