From 04e8c49fa7ede9a997db5724971bbd84f896864f Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Wed, 18 Feb 2026 23:12:03 +0330 Subject: [PATCH] =?UTF-8?q?fix:=20IPG=20DiscountBalance=20should=20be=202?= =?UTF-8?q?=C3=97=20BasePackageAmount=20(112M=20not=2056M)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both VerifyBasePackagePayment and VerifyPackagePurchase handlers were charging DiscountBalance with 1× amount instead of 2×. Now consistent with DayaLoan and ManualPayment handlers. - VerifyBasePackagePaymentCommandHandler: DiscountBalance += BasePackageAmount * 2 - VerifyPackagePurchaseCommandHandler: DiscountBalance += order.Amount * 2 - Change logs updated to reflect correct 2× discount value --- .../VerifyBasePackagePaymentCommandHandler.cs | 4 ++-- .../VerifyPackagePurchaseCommandHandler.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CMSMicroservice.Application/PackageCQ/Commands/VerifyBasePackagePayment/VerifyBasePackagePaymentCommandHandler.cs b/src/CMSMicroservice.Application/PackageCQ/Commands/VerifyBasePackagePayment/VerifyBasePackagePaymentCommandHandler.cs index df174cc..b7d79c3 100644 --- a/src/CMSMicroservice.Application/PackageCQ/Commands/VerifyBasePackagePayment/VerifyBasePackagePaymentCommandHandler.cs +++ b/src/CMSMicroservice.Application/PackageCQ/Commands/VerifyBasePackagePayment/VerifyBasePackagePaymentCommandHandler.cs @@ -133,7 +133,7 @@ public class VerifyBasePackagePaymentCommandHandler : IRequestHandler {NewBalance}, DiscountBalance: {OldDiscount} -> {NewDiscount}", @@ -157,7 +157,7 @@ public class VerifyBasePackagePaymentCommandHandler : IRequestHandler {NewBalance}", @@ -132,7 +132,7 @@ public class VerifyPackagePurchaseCommandHandler ChangeValue = order.Amount, CurrentNetworkBalance = wallet.NetworkBalance, ChangeNerworkValue = 0, - CurrentDiscountBalance = wallet.DiscountBalance - order.Amount, // قبل از شارژ DiscountBalance + CurrentDiscountBalance = wallet.DiscountBalance - (order.Amount * 2), // قبل از شارژ DiscountBalance ChangeDiscountValue = 0, IsIncrease = true, RefrenceId = transaction.Id @@ -148,7 +148,7 @@ public class VerifyPackagePurchaseCommandHandler CurrentNetworkBalance = wallet.NetworkBalance, ChangeNerworkValue = 0, CurrentDiscountBalance = wallet.DiscountBalance, - ChangeDiscountValue = order.Amount, + ChangeDiscountValue = order.Amount * 2, IsIncrease = true, RefrenceId = transaction.Id };