|
@@ -539,7 +539,23 @@ namespace PRSDesktop
|
|
|
{
|
|
|
if (Product.ID != Guid.Empty)
|
|
|
{
|
|
|
- CoreTable table = new Client<Product>().Query(new Filter<Product>(x => x.ID).IsEqualTo(Product.ID));
|
|
|
+ CoreTable table = new Client<Product>().Query(new Filter<Product>(x => x.ID).IsEqualTo(Product.ID),
|
|
|
+ new Columns<Product>(
|
|
|
+ x => x.Dimensions.Unit.ID,
|
|
|
+ x => x.Dimensions.Unit.HasQuantity,
|
|
|
+ x => x.Dimensions.Unit.HasLength,
|
|
|
+ x => x.Dimensions.Unit.HasHeight,
|
|
|
+ x => x.Dimensions.Unit.HasWeight,
|
|
|
+ x => x.Dimensions.Unit.HasWidth,
|
|
|
+ x => x.Dimensions.Quantity,
|
|
|
+ x => x.Dimensions.Length,
|
|
|
+ x => x.Dimensions.Height,
|
|
|
+ x => x.Dimensions.Weight,
|
|
|
+ x => x.Dimensions.Width,
|
|
|
+ x => x.Dimensions.Unit.Format,
|
|
|
+ x => x.Dimensions.Unit.Formula,
|
|
|
+ x => x.Dimensions.UnitSize
|
|
|
+ ));
|
|
|
Product product = table.Rows.FirstOrDefault().ToObject<Product>();
|
|
|
|
|
|
Dimensions.Unit.ID = product.Dimensions.Unit.ID;
|
|
@@ -557,6 +573,8 @@ namespace PRSDesktop
|
|
|
|
|
|
Dimensions.Unit.Format = product.Dimensions.Unit.Format;
|
|
|
Dimensions.Unit.Formula = product.Dimensions.Unit.Formula;
|
|
|
+
|
|
|
+ Dimensions.UnitSize = product.Dimensions.UnitSize;
|
|
|
}
|
|
|
}
|
|
|
|