feat: update financial response models to use string type for amounts

This commit is contained in:
MahanCh
2025-08-23 15:04:42 +03:30
parent 8bde7aa3d1
commit 859f8ea8ca
3 changed files with 16 additions and 16 deletions

View File

@@ -83,7 +83,7 @@ public class ReviewAndPaymentViewModel
/// مالیات بر ارزش افزوده
/// string
/// </summary>
public string ValueAddedTaxSt { get; set; }
public string ValueAddedTaxStr { get; set; }

View File

@@ -405,7 +405,7 @@ public class TemporaryClientRegistrationApplication : ITemporaryClientRegistrati
var tenPercent = result.SumOfWorkshopsPaymentDouble * 10 / 100;
//مالیات
result.ValueAddedTaxDouble = tenPercent;
result.ValueAddedTaxSt = tenPercent.ToMoney();
result.ValueAddedTaxStr = tenPercent.ToMoney();
//پرداخت یکجا
#region OneTimePaymentResult
@@ -549,7 +549,7 @@ public class TemporaryClientRegistrationApplication : ITemporaryClientRegistrati
var tenPercent = result.SumOfWorkshopsPaymentDouble * 10 / 100;
//مالیات
result.ValueAddedTaxDouble = tenPercent;
result.ValueAddedTaxSt = tenPercent.ToMoney();
result.ValueAddedTaxStr = tenPercent.ToMoney();
//پرداخت یکجا
#region OneTimePaymentResult

View File

@@ -600,7 +600,7 @@ public class institutionContractController : AdminBaseController
var result = new WorkshopServiceCalculatorResponse
{
TotalAmount = response.OnlineAndInPersonSumAmountDouble
TotalAmount = response.OnlineAndInPersonSumAmountStr
};
return result;
}
@@ -614,11 +614,11 @@ public class institutionContractController : AdminBaseController
var response = new InstitutionPlanCalculatorResponse
{
Installments = res.MonthlyInstallments,
OneTimeTotalAmountWithoutTax = res.OneTimeWithoutTaxPaymentDouble,
MonthlyTotalAmountWithoutTax = res.MonthlyWithoutTaxPaymentDouble,
OneTimeTotalAmount = res.OneTimeTotalPaymentDouble,
MonthlyTotalAmount= res.MonthlyTotalPaymentDouble,
TotalTax = res.ValueAddedTaxDouble,
OneTimeTotalAmountWithoutTax = res.OneTimeWithoutTaxPaymentStr,
MonthlyTotalAmountWithoutTax = res.MonthlyWithoutTaxPaymentStr,
OneTimeTotalAmount = res.OneTimeTotalPaymentStr,
MonthlyTotalAmount= res.MonthlyTotalPaymentStr,
TotalTax = res.ValueAddedTaxStr,
};
return response;
}
@@ -666,18 +666,18 @@ public class institutionContractController : AdminBaseController
public class InstitutionPlanCalculatorResponse
{
public double TotalAmountWithTax { get; set; }
public double OneTimeTotalAmountWithoutTax { get; set; }
public double TotalTax { get; set; }
public string TotalAmountWithTax { get; set; }
public string OneTimeTotalAmountWithoutTax { get; set; }
public string TotalTax { get; set; }
public List<MonthlyInstallment> Installments { get; set; }
public double OneTimeTotalAmount { get; set; }
public double MonthlyTotalAmount { get; set; }
public double MonthlyTotalAmountWithoutTax { get; set; }
public string OneTimeTotalAmount { get; set; }
public string MonthlyTotalAmount { get; set; }
public string MonthlyTotalAmountWithoutTax { get; set; }
}
public class WorkshopServiceCalculatorResponse
{
public double TotalAmount { get; set; }
public string TotalAmount { get; set; }
}
public record InstitutionPlanCalculatorRequest(List<WorkshopTempViewModel> workshopList,