namespace CashLineERP.Application.Finance;

public sealed record CustomerStatementDetailView(
    long CustomerStatementId,
    string StatementNumber,
    long CustomerId,
    string CustomerCode,
    string CustomerName,
    DateOnly? DateFrom,
    DateOnly? DateTo,
    string CurrencyCode,
    decimal OpeningBalanceAmount,
    decimal TotalChargeAmount,
    decimal TotalSettlementAmount,
    decimal ClosingBalanceAmount,
    decimal OpenInvoiceAmount,
    decimal OverdueInvoiceAmount,
    DateTime GeneratedAtUtc,
    long GeneratedByUserId,
    IReadOnlyCollection<CustomerStatementLineView> Lines,
    IReadOnlyCollection<CustomerStatementDeliveryLogView> DeliveryLogs);
