yuanrf před 4 dny
rodič
revize
2294282300

+ 2 - 2
OASystem/OASystem.Infrastructure/Repositories/Groups/DecreasePaymentsRepository.cs

@@ -314,7 +314,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                                         settingPrice *= cycleUnit;
                                     }
 
-                                    if (dto.Price <= settingPrice && dto.FeeTotal <= availableAmount && dto.FeeTotal <= setting.Quantity)
+                                    if (dto.Price <= settingPrice && dto.FeeTotal <= availableAmount && dto.Quantity <= setting.Quantity)
                                     {
                                         isAuto = true;
                                     }
@@ -470,7 +470,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                                             settingPrice *= cycleUnit;
                                         }
 
-                                        if (dto.Price <= settingPrice && dto.FeeTotal <= availableAmount && dto.FeeTotal <= setting.Quantity)
+                                        if (dto.Price <= settingPrice && dto.FeeTotal <= availableAmount && dto.Quantity <= setting.Quantity)
                                         {
                                             isAuto = true;
                                         }