refactor: remove LockedWalletAmount from DayaLoan processing logic
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m56s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m56s
This commit is contained in:
+1
-4
@@ -23,10 +23,7 @@ public record ProcessDayaLoanApprovalCommand : IRequest<ProcessDayaLoanApprovalR
|
||||
/// </summary>
|
||||
public long WalletAmount { get; init; } = SystemConstants.DayaLoanAmount;
|
||||
|
||||
/// <summary>
|
||||
/// مبلغ کیف پول قفل شده
|
||||
/// </summary>
|
||||
public long LockedWalletAmount { get; init; } = SystemConstants.DayaLoanAmount;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// مبلغ کیف پول تخفیف (دو برابر)
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ public class ProcessDayaLoanApprovalCommandHandler : IRequestHandler<ProcessDaya
|
||||
// ایجاد تراکنش با RefId = شماره قرارداد دایا
|
||||
var transaction = new Transaction
|
||||
{
|
||||
Amount = request.WalletAmount + request.LockedWalletAmount + request.DiscountWalletAmount, // 168 میلیون
|
||||
Amount = request.WalletAmount , // 168 میلیون
|
||||
Description = $"دریافت اعتبار دایا - قرارداد {request.ContractNumber}",
|
||||
PaymentStatus = PaymentStatus.Success,
|
||||
PaymentDate = DateTime.Now,
|
||||
|
||||
Reference in New Issue
Block a user