Merge branch 'Feature/InstitutionContract/add-registration-style' into Main

This commit is contained in:
MahanCh
2025-09-09 10:56:43 +03:30
2 changed files with 4 additions and 3 deletions

View File

@@ -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();

View File

@@ -263,7 +263,8 @@ public class PlanPercentageRepository : RepositoryBase<long, PlanPercentage>, 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,