- Introduce DiscountPercentage and DiscountAmount fields to contract creation and payment models - Implement discount calculation logic in repository - Add SetDiscountForExtension API endpoint and related request/response models - Update contract creation and extension flows to handle discounts
27 lines
822 B
C#
27 lines
822 B
C#
using System.Collections.Generic;
|
|
using CompanyManagment.App.Contracts.TemporaryClientRegistration;
|
|
|
|
namespace CompanyManagment.App.Contracts.InstitutionContract;
|
|
|
|
public class InstitutionContractPaymentOneTimeViewModel
|
|
{
|
|
/// <summary>
|
|
/// مجموع مبالغ
|
|
/// </summary>
|
|
public string TotalAmount { get; set; }
|
|
/// <summary>
|
|
/// ارزش افزوده
|
|
/// </summary>
|
|
public string Tax { get; set; }
|
|
/// <summary>
|
|
/// مبلغ قابل پرداخت
|
|
/// </summary>
|
|
public string PaymentAmount { get; set; }
|
|
|
|
public string DiscountedAmount { get; set; }
|
|
public int DiscountPercetage { get; set; }
|
|
}
|
|
public class InstitutionContractPaymentMonthlyViewModel:InstitutionContractPaymentOneTimeViewModel
|
|
{
|
|
public List<MonthlyInstallment> Installments { get; set; }
|
|
} |