erp-platform/api/src/Erp.Platform.Domain/Entities/Tenant/SupplyChain/Material.cs

36 lines
1.2 KiB
C#
Raw Normal View History

2025-11-11 19:49:52 +00:00
// Domain/Entities/MmMaterial.cs
2025-11-06 20:29:14 +00:00
using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
2025-11-11 19:49:52 +00:00
namespace Erp.Platform.Entities;
2025-11-06 20:29:14 +00:00
public class Material : FullAuditedEntity<Guid>, IMultiTenant
{
public Guid? TenantId { get; set; }
public string Code { get; set; }
public string Name { get; set; }
public string Barcode { get; set; }
public string Description { get; set; }
public Guid? MaterialTypeId { get; set; }
public MaterialType? MaterialType { get; set; }
public Guid? MaterialGroupId { get; set; }
public MaterialGroup? MaterialGroup { get; set; }
2025-11-26 19:39:01 +00:00
public string Uom { get; set; }
2025-11-06 20:29:14 +00:00
public decimal CostPrice { get; set; }
public decimal SalesPrice { get; set; }
public string Currency { get; set; }
2025-11-06 20:29:14 +00:00
public bool IsActive { get; set; }
public decimal TotalStock { get; set; }
public string TrackingType { get; set; } //'Quantity' | 'Lot' | 'Serial'
// Relations
public List<Uom> AlternativeUoms { get; set; }
public List<MaterialSpecification> Specifications { get; set; }
public List<Partner> Suppliers { get; set; }
public List<Bom> Boms { get; set; }
public List<BomComponent> BomComponents { get; set; }
2025-11-06 20:29:14 +00:00
}
2025-11-11 19:49:52 +00:00