2025-12-04 14:52:09 +00:00
|
|
|
// 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; }
|
2025-12-11 13:59:44 +00:00
|
|
|
|
|
|
|
|
public string PaymentTermId { get; set; }
|
2025-12-04 14:52:09 +00:00
|
|
|
public PaymentTerm PaymentTerm { get; set; }
|
|
|
|
|
|
2025-12-11 13:59:44 +00:00
|
|
|
public string DeliveryTermId { get; set; }
|
2025-12-04 14:52:09 +00:00
|
|
|
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; }
|
|
|
|
|
}
|