erp-platform/api/src/Erp.Platform.Domain/Entities/Tenant/Crm/SalesOrder.cs
2025-12-11 16:59:44 +03:00

44 lines
1.3 KiB
C#

// 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<Guid>, 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<SalesOrderItem> Items { get; set; }
}