32 lines
991 B
C#
32 lines
991 B
C#
using Marco.Pms.Model.Master;
|
|
using Marco.Pms.Model.Utilities;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Marco.Pms.Model.Inventory
|
|
{
|
|
public class ItemSupplierMapping : TenantRelation
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid ItemManufacturerMappingId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("ItemManufacturerMappingId")]
|
|
public ItemManufacturerMapping? ItemManufacturerMapping { get; set; }
|
|
public Guid SupplierId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("SupplierId")]
|
|
public Supplier? Supplier { get; set; }
|
|
public double BasePrice { get; set; }
|
|
public int PurchaseLeadTime { get; set; }
|
|
public Guid CurrencyId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("CurrencyId")]
|
|
public CurrencyMaster? Currency { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
}
|
|
|