changed msg if invoice-payment exceed to tax profoma amount

This commit is contained in:
pramod.mahajan 2025-12-04 13:03:16 +05:30
parent 1a3c030495
commit 26ac59fa52

View File

@ -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<object>.ErrorResponse("Total payment amount cannot exceed the invoice amount.", "Payment addition rejected due to exceeding invoice total amount.",
return ApiResponse<object>.ErrorResponse("Total payment amount cannot be exceed the Tax Invoice or Profoma Amount .", "Payment addition rejected due to exceeding Invoice / Profoma Total amount.",
400);
}