This commit is contained in:
2021-05-26 13:48:15 +00:00
parent 91cfb29b4d
commit 1465d89332
3 changed files with 5 additions and 0 deletions

View File

@@ -942,6 +942,8 @@ namespace AyaNova.Biz
l.Add(new FormField { TKey = "WorkOrderItemPartPartWarehouseID", FieldKey = "WorkOrderItemPartPartWarehouseID", TKeySection = "WorkOrderItemParts" });
l.Add(new FormField { TKey = "WorkOrderItemPartQuantity", FieldKey = "WorkOrderItemPartQuantity", TKeySection = "WorkOrderItemParts" });
l.Add(new FormField { TKey = "WorkOrderItemPartTaxPartSaleID", FieldKey = "WorkOrderItemPartTaxPartSaleID", TKeySection = "WorkOrderItemParts" });
l.Add(new FormField { TKey = "PartUPC", FieldKey = "PartUPC", TKeySection = "WorkOrderItemParts" });
l.Add(new FormField { TKey = "Cost", FieldKey = "PartCost", TKeySection = "WorkOrderItemParts" });
l.Add(new FormField { TKey = "ListPrice", FieldKey = "PartListPrice", TKeySection = "WorkOrderItemParts" });
l.Add(new FormField { TKey = "Price", FieldKey = "PartPriceViz", TKeySection = "WorkOrderItemParts" });

View File

@@ -3068,6 +3068,7 @@ namespace AyaNova.Biz
if (o.PartId != 0)
part = await ct.Part.AsNoTracking().FirstOrDefaultAsync(x => x.Id == o.PartId);
o.PartViz = part.Name;
o.UpcViz=part.UPC;
TaxCode Tax = null;
if (o.TaxPartSaleId != null)

View File

@@ -17,6 +17,8 @@ namespace AyaNova.Models
public long PartId { get; set; }
[NotMapped]
public string PartViz { get; set; }
[NotMapped]
public string UpcViz { get; set; }
[Required]
public long PartWarehouseId { get; set; }
[NotMapped]