namespace CashLineERP.Application.Sales;

public sealed record CreditControlEvaluation(
    long CustomerId,
    string CustomerCode,
    string CustomerName,
    string CurrencyCode,
    string BaseCurrencyCode,
    decimal? CreditLimitAmount,
    decimal? CreditLimitBaseAmount,
    int? CreditTermsDays,
    bool IsAccountCreditHoldEnabled,
    string? AccountCreditHoldReason,
    decimal OutstandingReceivablesAmount,
    decimal OutstandingReceivablesBaseAmount,
    decimal OpenSalesOrderAmount,
    decimal OpenSalesOrderBaseAmount,
    decimal CurrentExposureAmount,
    decimal CurrentExposureBaseAmount,
    int OverdueInvoiceCount,
    DateOnly? OldestOverdueInvoiceDate,
    bool ExposureIncludesMultipleCurrencies,
    bool ShouldHoldNewOrders,
    string? HoldReason);
