namespace CAPI.Custom.Entities { using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; public class Sale : EntityBase { public string accountNo { get; set; } = string.Empty; public decimal? allocated { get; set; } = 0m; public string allocatedReference { get; set; } = string.Empty; public decimal? amount { get; set; } = 0m; public string comments { get; set; } = string.Empty; public DateTime? dateDue { get; set; } = BusinessUtils.SqlDateTimeMinValue; public DateTime? dateOfCapture { get; set; } = BusinessUtils.SqlDateTimeMinValue; public DateTime? dateOfService { get; set; } = BusinessUtils.SqlDateTimeMinValue; public string email { get; set; } = string.Empty; public string emailCC { get; set; } = string.Empty; public bool? emailSent { get; set; } = false; public string initials { get; set; } = string.Empty; public int? invoiceNo { get; set; } = 0; public bool? isDraft { get; set; } = false; public bool? isVisible { get; set; } public string itemCode { get; set; } = string.Empty; public string itemDescription { get; set; } = string.Empty; public string itemType { get; set; } = string.Empty; public string name { get; set; } = string.Empty; public string postalAddress { get; set; } = string.Empty; public decimal? qty { get; set; } = 0m; public int? receiptNo { get; set; } = 0; public string reference { get; set; } = string.Empty; public decimal? runningBal { get; set; } = 0m; public int? sequence { get; set; } = 0; public int? statusId { get; set; } = 1; public int? surfaceItemId { get; set; } = 0; public string surname { get; set; } = string.Empty; public string title { get; set; } = string.Empty; public decimal? unitFee { get; set; } = 0m; public DateTime? updateDate { get; set; } = BusinessUtils.SqlDateTimeMinValue; public int? updateUserId { get; set; } = 0; public int? userId { get; set; } = 0; public string vatNum { get; set; } = string.Empty; public decimal? vatRate { get; set; } = 0m; } }