Fix calculation of discounted payment amount in institution contract repository

This commit is contained in:
2025-12-06 16:46:02 +03:30
parent 87ff7976fb
commit 343f830d0d

View File

@@ -2397,7 +2397,7 @@ public class InstitutionContractRepository : RepositoryBase<long, InstitutionCon
selectedPlan.TotalPayment = res.Monthly.TotalAmount;
selectedPlan.Obligation = res.Monthly.Obligation;
selectedPlan.OneMonthPaymentDiscounted = res.Monthly.PaymentAmount;
selectedPlan.OneMonthPaymentDiscounted = res.Monthly.OneMonthAmount;
selectedPlan.DailyCompenseation = (res.Monthly.OneMonthAmount.MoneyToDouble() * 0.10).ToMoney();
}
else
@@ -2422,7 +2422,7 @@ public class InstitutionContractRepository : RepositoryBase<long, InstitutionCon
};
selectedPlan.TotalPayment = res.OneTime.TotalAmount;
selectedPlan.Obligation = res.OneTime.Obligation;
selectedPlan.OneMonthPaymentDiscounted = res.OneTime.PaymentAmount;
selectedPlan.OneMonthPaymentDiscounted = res.OneTime.OneMonthAmount;
selectedPlan.DailyCompenseation = (res.OneTime.OneMonthAmount.MoneyToDouble() * 0.10).ToMoney();
}