yuanrf hai 5 meses
pai
achega
3394a1f2fd
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      OASystem/OASystem.Api/Controllers/FinancialController.cs

+ 8 - 1
OASystem/OASystem.Api/Controllers/FinancialController.cs

@@ -4100,6 +4100,7 @@ Group by PriceType ", dto.diId);
                 .Where(x=> {
                     var count = 0;
                     var stringArr = new string[] { "SYsupervisorConfirm", "SupervisorConfirm", "ManagerConfirm" };
+                    var max = 1;
                     foreach (var item in stringArr)
                     {
                         var number = x.GetType()?.GetProperty(item)?.GetValue(x).ObjToInt();
@@ -4108,7 +4109,13 @@ Group by PriceType ", dto.diId);
                             count++;
                         }
                     }
-                    return count > 1;
+
+                    if (x.PriceDetailType == 1044)
+                    {
+                        max = 0;
+                    }
+
+                    return count > max;
                 })
                 .Select(x =>
                 {