diff --git a/CompanyManagment.Application/TemporaryClientRegistrationApplication.cs b/CompanyManagment.Application/TemporaryClientRegistrationApplication.cs index 93e62eaa..8800c323 100644 --- a/CompanyManagment.Application/TemporaryClientRegistrationApplication.cs +++ b/CompanyManagment.Application/TemporaryClientRegistrationApplication.cs @@ -541,8 +541,8 @@ public class TemporaryClientRegistrationApplication : ITemporaryClientRegistrati var months = (int)duration; //رند کردن مبالغ کارگاه ها - var roundAmount = (((Convert.ToInt64(totalPayment1MonthDouble))) / 1000000) * 1000000; - double roundAmount2 = roundAmount; + + double roundAmount2 = totalPayment1MonthDouble; //بدست آوردن جمع کل مبالغ کارگاه بر اساس مدت قراداد var sumOfWorkshopsPaymentDouble = months * roundAmount2; result.SumOfWorkshopsPayment = roundAmount2.ToMoney(); diff --git a/CompanyManagment.EFCore/Repository/PlanPercentageRepository.cs b/CompanyManagment.EFCore/Repository/PlanPercentageRepository.cs index 21e57fa1..2657de37 100644 --- a/CompanyManagment.EFCore/Repository/PlanPercentageRepository.cs +++ b/CompanyManagment.EFCore/Repository/PlanPercentageRepository.cs @@ -263,7 +263,8 @@ public class PlanPercentageRepository : RepositoryBase, IP planByCountPerson.RollCallDouble + planByCountPerson.CustomizeCheckoutDouble; - onlineAndInPersonSumAmount = (onlineAndInPersonSumAmount /10000) * 10000; + onlineAndInPersonSumAmount = Math.Floor(onlineAndInPersonSumAmount); + onlineAndInPersonSumAmount = Math.Floor(onlineAndInPersonSumAmount / 10000) * 10000; return new InstitutionPlanViewModel() { CountPerson = planByCountPerson.CountPerson,