mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-07 12:16:30 +00:00
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
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 5m15s
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user