fix(views): format topup amount to two decimal places in VerifyTopupPaymentAPIView 🔨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 5m15s

This commit is contained in:
2025-07-05 17:02:19 +05:00
parent 54056e9b7e
commit 8871de8ce1

View File

@ -386,7 +386,7 @@ class VerifyTopupPaymentAPIView(StaffEditorPermissionMixin, generics.UpdateAPIVi
data = { data = {
"benefName": f"{user.first_name} {user.last_name}", # type: ignore "benefName": f"{user.first_name} {user.last_name}", # type: ignore
"accountNo": user.acc_no, # type: ignore "accountNo": user.acc_no, # type: ignore
"absAmount": topup_instance.amount, "absAmount": topup_instance.amount.toFixed(2), # type: ignore
"time": localtime(topup_instance.created_at).strftime("%Y-%m-%d %H:%M"), "time": localtime(topup_instance.created_at).strftime("%Y-%m-%d %H:%M"),
} }
logger.info( logger.info(