From 8871de8ce19a504f75c2e34d3135d20cbd2300b6 Mon Sep 17 00:00:00 2001 From: i701 Date: Sat, 5 Jul 2025 17:02:19 +0500 Subject: [PATCH] =?UTF-8?q?fix(views):=20format=20topup=20amount=20to=20tw?= =?UTF-8?q?o=20decimal=20places=20in=20VerifyTopupPaymentAPIView=20?= =?UTF-8?q?=F0=9F=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- billing/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/billing/views.py b/billing/views.py index cc7af32..2d3469d 100644 --- a/billing/views.py +++ b/billing/views.py @@ -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, + "absAmount": topup_instance.amount.toFixed(2), # type: ignore "time": localtime(topup_instance.created_at).strftime("%Y-%m-%d %H:%M"), } logger.info(