using System;
using System.Collections.Generic;

namespace Models.Models;

/// <summary>
/// FormSeries: talonarios/series por tipo de formulario, letra y punto de venta.
/// </summary>
public partial class PhSFormSeries
{
    public int Id { get; set; }

    /// <summary>
    /// FK a tipo de formulario (PhS_FormTypes).
    /// </summary>
    public int FormtypeId { get; set; }

    /// <summary>
    /// Punto de venta asignado.
    /// </summary>
    public short Pointofsale { get; set; }

    /// <summary>
    /// Letra de serie (A,B,C...).
    /// </summary>
    public string Letter { get; set; } = null!;

    /// <summary>
    /// Marca esta serie como predeterminada.
    /// </summary>
    public bool Isdefault { get; set; }

    /// <summary>
    /// Indica si está habilitada.
    /// </summary>
    public bool Isactive { get; set; }

    public DateTime Createdat { get; set; }

    public DateTime? Modifiedat { get; set; }

    public string NumberingSource { get; set; } = null!;

    public virtual PhSFormType Formtype { get; set; } = null!;

    public virtual PhSFormSeriesNextNumber? PhSFormSeriesNextNumber { get; set; }

    public virtual ICollection<PhSSalesDocument> PhSSalesDocuments { get; set; } = new List<PhSSalesDocument>();
}
