add payment method handling to InstitutionContractExtension, update repository and controller

This commit is contained in:
2025-10-09 11:54:30 +03:30
parent b78a06e743
commit 9f7d267afb
2 changed files with 10 additions and 2 deletions

View File

@@ -2378,8 +2378,9 @@ public class InstitutionContractRepository : RepositoryBase<long, InstitutionCon
if (hasInPersonContract)
{
result.OneMonthDiscount = "0";
result.OneMonthOriginalPayment = totalPrice.ToMoney();
result.OneMonthPaymentDiscounted = totalPrice.ToMoney();
result.OneMonthOriginalPayment = amount.ToMoney();
result.OneMonthPaymentDiscounted = amount.ToMoney();
result.TotalPayment = totalPrice.ToMoney();
}
else
{

View File

@@ -498,6 +498,13 @@ public class institutionContractController : AdminBaseController
var res =await _institutionContractApplication.GetExtenstionInstitutionPlan(request);
return res;
}
[HttpPost("extenstion/payment-method")]
public async Task<ActionResult<InstitutionContractExtensionPaymentResponse>> GetExtenstionPaymentMethod(InstitutionContractExtensionPaymentRequest request)
{
var res =await _institutionContractApplication.GetExtenstionPaymentMethod(request);
return res;
}
[HttpPost("extenstion/complete")]
public async Task<ActionResult<OperationResult>> ExtenstionComplete(InstitutionContractExtensionCompleteRequest request)