Ver código fonte

Fixed SupplierCode and SupplierDescription not being pulled on PurchaseOrderItem grid

Kenric Nugteren 5 meses atrás
pai
commit
117b507141

+ 4 - 0
prs.desktop/Panels/PurchaseOrders/SupplierPurchaseOrderItemOneToMany.cs

@@ -727,6 +727,8 @@ public class SupplierPurchaseOrderItemOneToMany : DynamicOneToManyGrid<PurchaseO
                 .Add(x => x.Style.ID)
                 .Add(x => x.Style.Code)
                 .Add(x => x.Style.Description)
+                .Add(x => x.SupplierCode)
+                .Add(x => x.SupplierDescription)
                 .Add(x=>x.Job.ID)
                 .Add(x=>x.Job.JobNumber)
                 .Add(x=>x.Job.Name)
@@ -755,6 +757,8 @@ public class SupplierPurchaseOrderItemOneToMany : DynamicOneToManyGrid<PurchaseO
                     poi.PurchaseGL.CopyFrom(sp.Product.PurchaseGL);
                     poi.Job.CopyFrom(sp.Job);
                     poi.Description = sp.Product.Name;
+                    poi.SupplierCode = sp.SupplierCode;
+                    poi.Description = sp.SupplierDescription;
                     result.Add(poi);
                 }
                 return result;