36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
|
|
// Domain/Entities/MmMaterial.cs
|
||
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
||
|
|
using Volo.Abp.MultiTenancy;
|
||
|
|
|
||
|
|
namespace Kurs.Platform.Entities;
|
||
|
|
|
||
|
|
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; }
|
||
|
|
public Guid? UomId { get; set; }
|
||
|
|
public Uom? Uom { get; set; }
|
||
|
|
public decimal CostPrice { get; set; }
|
||
|
|
public decimal SalesPrice { get; set; }
|
||
|
|
public Guid? CurrencyId { get; set; }
|
||
|
|
public Currency? Currency { get; set; }
|
||
|
|
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<MmStockLevel> StockLevels { get; set; }
|
||
|
|
}
|