Jelajahi Sumber

Fix to JRI store not using Dimensions.Value

Kenric Nugteren 1 tahun lalu
induk
melakukan
1f864a744b
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      prs.stores/JobRequisitionItemStore.cs

+ 2 - 2
prs.stores/JobRequisitionItemStore.cs

@@ -23,7 +23,7 @@ public class JobRequisitionItemStore : BaseStore<JobRequisitionItem>
         if (item.ID != Guid.Empty)
         {
             if (CalculateStatus(this, item))
-                item.Notes += $"{(!String.IsNullOrWhiteSpace(item.Notes) ? "\n" : "")}Status updated to {item.Status.ToString().SplitCamelCase()} because the record was changed";      
+                item.Notes += $"{(!String.IsNullOrWhiteSpace(item.Notes) ? "\n" : "")}Status updated to {item.Status.ToString().SplitCamelCase()} because the record was changed";
         }
         base.BeforeSave(item);
     }
@@ -175,7 +175,7 @@ public class JobRequisitionItemStore : BaseStore<JobRequisitionItem>
                 {
                     styleTotal += mvt.Units * mvt.Dimensions.Value;
                 }
-                total += mvt.Units;
+                total += mvt.Units * mvt.Dimensions.Value;
             }
 
             var remStyle = (item.Qty * item.Dimensions.Value) - styleTotal;