Permite congelar el saldo de un distribuidor por empresa a una fecha de corte y bloquear modificaciones retroactivas sobre el período cerrado. El saldo se calcula sumando movimientos en rango (sin tocar cue_Saldos). Incluye reapertura controlada exclusivamente por SuperAdmin, reporte con saldo inicial, atajo "Desde último cierre", y auditoría del ciclo de vida _H. Permisos CC001/CC002/CC003. Middleware global mapea bloqueos por período cerrado a HTTP 409.
24 lines
1.0 KiB
C#
24 lines
1.0 KiB
C#
using System;
|
|
namespace GestionIntegral.Api.Models.Contables
|
|
{
|
|
public class CierreCuentaCorrienteHistorico // Corresponde a cue_CierresCuentaCorriente_H
|
|
{
|
|
public int Id_Historial { get; set; }
|
|
public int Id_Cierre { get; set; }
|
|
public int Id_Distribuidor { get; set; }
|
|
public int Id_Empresa { get; set; }
|
|
public DateTime FechaCorte { get; set; }
|
|
public DateTime FechaCierre { get; set; }
|
|
public decimal SaldoCierre { get; set; }
|
|
public string Estado { get; set; } = string.Empty;
|
|
public string? Justificacion { get; set; }
|
|
public int Id_Usuario_Cierre { get; set; }
|
|
public int? Id_Usuario_Anula { get; set; }
|
|
public DateTime? FechaAnulacion { get; set; }
|
|
public string? Justificacion_Anulacion { get; set; }
|
|
public string TipoMod { get; set; } = string.Empty; // 'Creacion' | 'Reapertura' | 'Modificacion'
|
|
public int Id_Usuario_Mod { get; set; }
|
|
public DateTime FechaMod { get; set; }
|
|
}
|
|
}
|