This commit is contained in:
@@ -535,6 +535,7 @@ namespace AyaNova.Biz
|
|||||||
l.Add(new FormField { TKey = "PurchaseOrderItemVendorPartNumber", FieldKey = "Items.VendorPartNumber" });
|
l.Add(new FormField { TKey = "PurchaseOrderItemVendorPartNumber", FieldKey = "Items.VendorPartNumber" });
|
||||||
l.Add(new FormField { TKey = "PurchaseOrderItemSerialNumbers", FieldKey = "Items.Serials" });
|
l.Add(new FormField { TKey = "PurchaseOrderItemSerialNumbers", FieldKey = "Items.Serials" });
|
||||||
l.Add(new FormField { TKey = "PartDescription", FieldKey = "Items.PartDescription" });
|
l.Add(new FormField { TKey = "PartDescription", FieldKey = "Items.PartDescription" });
|
||||||
|
l.Add(new FormField { TKey = "PartUPC", FieldKey = "Items.PartUPC" });
|
||||||
l.Add(new FormField { TKey = "UnitOfMeasure", FieldKey = "Items.PartUnitOfMeasureViz" });
|
l.Add(new FormField { TKey = "UnitOfMeasure", FieldKey = "Items.PartUnitOfMeasureViz" });
|
||||||
|
|
||||||
l.Add(new FormField { TKey = "PurchaseOrderCustom1", FieldKey = "PurchaseOrderCustom1", IsCustomField = true });
|
l.Add(new FormField { TKey = "PurchaseOrderCustom1", FieldKey = "PurchaseOrderCustom1", IsCustomField = true });
|
||||||
|
|||||||
@@ -180,9 +180,10 @@ namespace AyaNova.Biz
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var partInfo = await ct.Part.AsNoTracking().Where(x => x.Id == item.PartId).Select(x => new { partViz = x.Description, partNameViz = x.Name, partunitofmeasureviz = x.UnitOfMeasure, partmanufacturernumber = x.ManufacturerNumber }).FirstOrDefaultAsync();
|
var partInfo = await ct.Part.AsNoTracking().Where(x => x.Id == item.PartId).Select(x => new { partViz = x.Description, partNameViz = x.Name, partUPCViz=x.UPC, partunitofmeasureviz = x.UnitOfMeasure, partmanufacturernumber = x.ManufacturerNumber }).FirstOrDefaultAsync();
|
||||||
item.PartDescriptionViz = partInfo.partViz;
|
item.PartDescriptionViz = partInfo.partViz;
|
||||||
item.PartNameViz = partInfo.partNameViz;
|
item.PartNameViz = partInfo.partNameViz;
|
||||||
|
item.UpcViz=partInfo.partUPCViz;
|
||||||
item.PartUnitOfMeasureViz = partInfo.partunitofmeasureviz;
|
item.PartUnitOfMeasureViz = partInfo.partunitofmeasureviz;
|
||||||
item.PartManufacturerNumberViz = partInfo.partmanufacturernumber;
|
item.PartManufacturerNumberViz = partInfo.partmanufacturernumber;
|
||||||
item.WarehouseViz = await ct.PartWarehouse.AsNoTracking().Where(x => x.Id == item.PartWarehouseId).Select(x => x.Name).FirstOrDefaultAsync();
|
item.WarehouseViz = await ct.PartWarehouse.AsNoTracking().Where(x => x.Id == item.PartWarehouseId).Select(x => x.Name).FirstOrDefaultAsync();
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ namespace AyaNova.Models
|
|||||||
[NotMapped]
|
[NotMapped]
|
||||||
public string PartDescriptionViz { get; set; }
|
public string PartDescriptionViz { get; set; }
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
|
public string UpcViz { get; set; }
|
||||||
|
[NotMapped]
|
||||||
public string PartManufacturerNumberViz { get; set; }
|
public string PartManufacturerNumberViz { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user