From 996baed5965d9f95f96cac856542528a1599022c Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Mon, 29 Jul 2024 13:30:20 +0200 Subject: [PATCH] fix: use 2 decimal places for price on the calendar --- endpoints/subscription/getcalendar.php | 1 + 1 file changed, 1 insertion(+) diff --git a/endpoints/subscription/getcalendar.php b/endpoints/subscription/getcalendar.php index 298be0abc..17e18acff 100644 --- a/endpoints/subscription/getcalendar.php +++ b/endpoints/subscription/getcalendar.php @@ -35,6 +35,7 @@ $subscription['category'] = $categories[$subscription['category_id']]['name']; $subscription['payment_method'] = $payment_methods[$subscription['payment_method_id']]['name']; $subscription['currency'] = $currencies[$subscription['currency_id']]['symbol']; + $subscription['price'] = number_format($subscription['price'], 2); echo json_encode([ 'success' => true,