fix: remove double ×10 conversion in wallet charge — FO should send Toman, not Rial
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m40s
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m40s
Root cause: FrontOffice was converting Toman→Rial (×10) before sending to CMS, but CMS ZarinPalService already does Toman→Rial conversion internally. This caused double ×10 = amounts shown 10x higher in payment gateway. Fixes: - MagicWallet.razor.cs: remove ×10 conversion, send _chargeAmount (Toman) directly - MagicWallet.razor: fix Max field (no /10), fix preset filter (no ×10) - MagicWallet.razor.cs: fix FormatPrice — values from CMS are Toman, not Rial - ChargeDiscountWallet.razor.cs: same fix — send Toman directly - ClubMembershipContractDialog.razor: fix Price display (no /10)
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
if (basePackage != null)
|
||||
{
|
||||
_packageDisplayName = basePackage.Title;
|
||||
_packageDisplayPrice = $"{basePackage.Price / 10:N0} تومان";
|
||||
_packageDisplayPrice = $"{basePackage.Price:N0} تومان";
|
||||
}
|
||||
}
|
||||
catch { /* fallback to defaults */ }
|
||||
|
||||
Reference in New Issue
Block a user