This commit is contained in:
@@ -42,6 +42,7 @@ namespace AyaNova.Models
|
||||
public virtual DbSet<Part> Part { get; set; }
|
||||
public virtual DbSet<PartInventory> PartInventory { get; set; }
|
||||
public virtual DbSet<PartWarehouse> PartWarehouse { get; set; }
|
||||
public virtual DbSet<PartStockLevel> PartStockLevel { get; set; }
|
||||
public virtual DbSet<PartSerial> PartSerial { get; set; }
|
||||
public virtual DbSet<PartAssembly> PartAssembly { get; set; }
|
||||
public virtual DbSet<PartAssemblyItem> PartAssemblyItem { get; set; }
|
||||
|
||||
29
server/AyaNova/models/PartStockLevel.cs
Normal file
29
server/AyaNova/models/PartStockLevel.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
//for specific parts only
|
||||
//if not in this table then a part has no minimum level
|
||||
//NOTE: called this specifically partstocklevel and not restock level because it could be expanded to include reorder, danger, maximum levels
|
||||
//if we want to implement fully inventory management down the road (DTR)
|
||||
/*
|
||||
This article throws light upon the four major types of stock levels of inventory. The types are: 1. Minimum Level 2. Maximum Level 3. Danger Level 4. Average Stock Level.
|
||||
https://www.yourarticlelibrary.com/material-management/inventory-control-material-management/4-major-types-of-stock-levels-of-inventory-with-formula/90394
|
||||
*/
|
||||
public class PartStockLevel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public long PartWarehouseId { get; set; }
|
||||
[Required]
|
||||
public long PartId { get; set; }
|
||||
[Required]
|
||||
public decimal MinimumQuantity { get; set; }
|
||||
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
Reference in New Issue
Block a user