Browse Source

Reverted the area calculation for DeliveryItem

Kenric Nugteren 1 tuần trước cách đây
mục cha
commit
29d3fd2a1e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
     }