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

@@ -27,6 +27,7 @@ namespace AyaNova.Models
public DateTime? ReceivedDate { get; set; }
public long? PartRequestedById { get; set; }
public long? WorkOrderItemPartRequestId { get; set; }
public long? PurchaseTaxCodeId { get; set; }
public string VendorPartNumber { get; set; }
public string Serials { get; set; }
@@ -57,7 +58,7 @@ namespace AyaNova.Models
public decimal TaxBViz { get; set; }//DisplayTaxB
[NotMapped]
public decimal LineTotalViz { get; set; }//DisplayLineTotal

View File

@@ -7,18 +7,18 @@ namespace AyaNova.Models
{
public long RequestId { get; set; }
public long PartId { get; set; }
public long PartWarehouseId { get; set; }
public long? PartWarehouseId { get; set; }
public decimal Quantity { get; set; }
public long Serial { get; set; }
public string PartNumber { get; set; }
public string PartName { get; set; }
public string PartWarehouseName { get; set; }
public long WholesalerId { get; set; }
public long? WholesalerId { get; set; }
public string WholesalerName { get; set; }
public long AltWholesalerId { get; set; }
public long? AltWholesalerId { get; set; }
public string AltWholesalerName { get; set; }
public string RequestedByUserName { get; set; }
public long RequestedByUserId { get; set; }
public long? RequestedByUserId { get; set; }
}//eoc
}//eons

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>();