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 5m40s

This commit is contained in:
2025-07-05 17:16:00 +05:00
parent 8871de8ce1
commit 6431d61d39

View File

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