Customer.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Quadarax.Application.QLiberace.Common.Entities.Base;
  2. namespace Quadarax.Application.QLiberace.Customer.Entities
  3. {
  4. public class Customer : QlbrcEntityTenantCode
  5. {
  6. /// <summary>
  7. /// Customer code. Main key to search.
  8. /// </summary>
  9. public string Code { get; set; } = null!;
  10. /// <summary>
  11. /// Customer head name. For identification usage.
  12. /// </summary>
  13. public string Name { get; set; } = null!;
  14. /// <summary>
  15. /// Customer tax number (business identifier)
  16. /// </summary>
  17. public string? TaxNumber { get; set; }
  18. /// <summary>
  19. /// Customer VAT number (VAT identification)
  20. /// </summary>
  21. public string? VatNumber { get; set; }
  22. /// <summary>
  23. /// Flag if VAT calculation is allowed
  24. /// </summary>
  25. public bool? VatIncluded { get; set; }
  26. /// <summary>
  27. /// Tax country region code
  28. /// </summary>
  29. public string TaxCountryCode { get; set; } = null!;
  30. public virtual ICollection<Contact> Contacts { get; set; } = null!;
  31. public virtual ICollection<CustomerUser> Users { get; set; } = null!;
  32. public Customer()
  33. {
  34. Contacts = new List<Contact>();
  35. Users = new List<CustomerUser>();
  36. }
  37. }
  38. }