diff --git a/Marco.Pms.Services/Service/ExpensesService.cs b/Marco.Pms.Services/Service/ExpensesService.cs index 0028578..57e7187 100644 --- a/Marco.Pms.Services/Service/ExpensesService.cs +++ b/Marco.Pms.Services/Service/ExpensesService.cs @@ -1855,7 +1855,7 @@ namespace Marco.Pms.Services.Service if (model.StatusId == Processed) { var totalAmount = model.BaseAmount + model.TaxAmount; - if (totalAmount.HasValue || totalAmount != paymentRequest.Amount) + if (!totalAmount.HasValue || totalAmount != paymentRequest.Amount) { // Log the mismatch error with relevant details _logger.LogWarning("Payment amount mismatch: calculated totalAmount = {TotalAmount}, expected Amount = {ExpectedAmount}", totalAmount ?? 0, paymentRequest.Amount);