From 848a56beee0f057221e196b14f897b83da959795 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Thu, 6 Nov 2025 09:34:53 +0530 Subject: [PATCH] Corrected the logic when adding processing the payment --- Marco.Pms.Services/Service/ExpensesService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);