// Domain/Entities/CrmSalesOrder.cs using System; using System.Collections.Generic; using Volo.Abp.Domain.Entities.Auditing; using Volo.Abp.MultiTenancy; namespace Erp.Platform.Entities; public class SalesOrder : FullAuditedEntity, IMultiTenant { public Guid? TenantId { get; set; } public string OrderNumber { get; set; } public Guid CustomerId { get; set; } public Partner Customer { get; set; } public DateTime OrderDate { get; set; } public DateTime RequestedDeliveryDate { get; set; } public DateTime? ConfirmedDeliveryDate { get; set; } public string Status { get; set; } public decimal Subtotal { get; set; } public decimal TaxAmount { get; set; } public decimal DiscountAmount { get; set; } public decimal TotalAmount { get; set; } public string Currency { get; set; } public string PaymentTermId { get; set; } public PaymentTerm PaymentTerm { get; set; } public string DeliveryTermId { get; set; } public DeliveryTerm DeliveryTerm { get; set; } public decimal ExchangeRate { get; set; } public decimal DiscountRate { get; set; } public decimal TaxRate { get; set; } public string SpecialInstructions { get; set; } public string Notes { get; set; } public ICollection Items { get; set; } }