From 26ac59fa52c821970db2397234b4788b5595508c Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Thu, 4 Dec 2025 13:03:16 +0530 Subject: [PATCH] changed msg if invoice-payment exceed to tax profoma amount --- Marco.Pms.Services/Service/PurchaseInvoiceService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marco.Pms.Services/Service/PurchaseInvoiceService.cs b/Marco.Pms.Services/Service/PurchaseInvoiceService.cs index f973b75..4be3475 100644 --- a/Marco.Pms.Services/Service/PurchaseInvoiceService.cs +++ b/Marco.Pms.Services/Service/PurchaseInvoiceService.cs @@ -1541,7 +1541,7 @@ namespace Marco.Pms.Services.Service _logger.LogWarning("Attempt to add payment exceeding invoice total. InvoiceId: {InvoiceId}, TenantId: {TenantId}, InvoiceTotal: {InvoiceTotal}, AlreadyPaid: {AlreadyPaid}, NewAmount: {NewAmount}, ProposedTotal: {ProposedTotal}", model.InvoiceId, tenantId, purchaseInvoice.TotalAmount, alreadyPaidAmount, model.Amount, proposedTotalPaidAmount); - return ApiResponse.ErrorResponse("Total payment amount cannot exceed the invoice amount.", "Payment addition rejected due to exceeding invoice total amount.", + return ApiResponse.ErrorResponse("Total payment amount cannot be exceed the Tax Invoice or Profoma Amount .", "Payment addition rejected due to exceeding Invoice / Profoma Total amount.", 400); }