phronCare/Domain/Entities/ECustomer.cs

24 lines
1.1 KiB
C#
Raw Normal View History

2025-04-14 17:50:25 -03:00
using System.ComponentModel.DataAnnotations;
2025-04-03 15:49:04 -03:00
namespace Domain.Entities
{
public class ECustomer
{
public int Id { get; set; }
[Required(ErrorMessage = "Debe ingresar un nombre.")]
2025-04-03 15:49:04 -03:00
public string? Name { get; set; }
[Required(ErrorMessage = "Debe ingresar una razon social.")]
2025-04-03 15:49:04 -03:00
public string? BusinessName { get; set; }
[Required(ErrorMessage = "Debe seleccionar un tipo de cuenta.")]
2025-04-03 15:49:04 -03:00
public int? AccounttypesId { get; set; }
[Required(ErrorMessage = "Debe seleccionar un condicion.")]
2025-04-03 15:49:04 -03:00
public int? TaxConditionId { get; set; }
public bool HasCreditAccount { get; set; }
public decimal CreditLimit { get; set; }
public bool Active { get; set; }
public string? ExternalCode { get; set; }
public virtual EAccountType? Accounttypes { get; set; }
2025-04-04 20:06:04 -03:00
public virtual ICollection<ECustomerAddress> PhSCustomerAddresses { get; set; } = new List<ECustomerAddress>();
2025-04-04 15:46:48 -03:00
public virtual ICollection<ECustomerDocument> PhSCustomerDocuments { get; set; } = new List<ECustomerDocument>();
2025-04-03 15:49:04 -03:00
}
}