This commit is contained in:
2021-08-26 18:27:22 +00:00
parent 3700509925
commit 7354e63056
5 changed files with 23 additions and 31 deletions

View File

@@ -12,24 +12,23 @@ namespace AyaNova.Models
public long Id { get; set; }
public uint Concurrency { get; set; }
[Required]
public long WorkOrderItemId { get; set; }
[Required]
public long PartId { get; set; }
[NotMapped]
public string PartViz { get; set; }
[NotMapped]
public string UpcViz { get; set; }
[Required]
public long PartWarehouseId { get; set; }
[NotMapped]
public string PartWarehouseViz { get; set; }
[Required]
public decimal Quantity { get; set; }
public long? RequestedByUserId { get; set; }
[NotMapped]
public string RequestedByUserViz { get; set; }
public long? PurchaseOrderItemId { get; set; }
public long? RequestedByUserId { get; set; }
[Required]
public decimal Received { get; set; }
[NotMapped]
public string RequestedByUserViz { get; set; }
[NotMapped]
public string PurchaseOrderViz { get; set; }
[NotMapped]
@@ -38,23 +37,12 @@ namespace AyaNova.Models
public DateTime? PurchaseOrderDateViz { get; set; }
[NotMapped]
public DateTime? PurchaseOrderExpectedDateViz { get; set; }
//redundant; the poid suffices
// [NotMapped]
// public bool PurchaseOrderOnOrderViz { get; set; }
[Required]
public decimal Received { get; set; }
[Required]
public long WorkOrderItemId { get; set; }
[NotMapped]
public string PartWarehouseViz { get; set; }
[JsonIgnore]
public WorkOrderItem WorkOrderItem { get; set; }
[NotMapped, JsonIgnore]
public AyaType AyaType { get => AyaType.WorkOrderItemPartRequest; }
//workaround for notification
[NotMapped, JsonIgnore]
public List<string> Tags { get; set; } = new List<string>();