Просмотр исходного кода

Reverted the area calculation for DeliveryItem

Kenric Nugteren 4 недель назад
Родитель
Сommit
29d3fd2a1e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      prs.classes/Entities/DeliveryItem/DeliveryItem.cs

+ 1 - 1
prs.classes/Entities/DeliveryItem/DeliveryItem.cs

@@ -21,7 +21,7 @@ namespace Comal.Classes
     public class DeliveryItemArea : IFormula<DeliveryItem, decimal>
     {
         public Expression<Func<DeliveryItem, decimal>> Value => x => x.Height;
-        public Expression<Func<DeliveryItem, decimal>>[] Modifiers => new Expression<Func<DeliveryItem, decimal>>[] { x => x.Width };
+        public Expression<Func<DeliveryItem, decimal>>[] Modifiers => new Expression<Func<DeliveryItem, decimal>>[] { x => x.Width, x => 0.000001m };
         public FormulaOperator Operator => FormulaOperator.Multiply;
         public FormulaType Type => FormulaType.Virtual;
     }