From e09e86bae312dc1ca54d79eefc22b3db0ee6f8d5 Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Sat, 10 May 2025 19:38:12 +0700 Subject: [PATCH 1/6] update card in dashboard --- src/pages/dashboards/home/DashboardHomePage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/dashboards/home/DashboardHomePage.tsx b/src/pages/dashboards/home/DashboardHomePage.tsx index bd9047a..0ff5b34 100644 --- a/src/pages/dashboards/home/DashboardHomePage.tsx +++ b/src/pages/dashboards/home/DashboardHomePage.tsx @@ -266,14 +266,14 @@ const DashboardHomePage = () => { /> Date: Sat, 10 May 2025 19:47:44 +0700 Subject: [PATCH 2/6] update --- src/pages/dashboards/home/blocks/Card.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/dashboards/home/blocks/Card.tsx b/src/pages/dashboards/home/blocks/Card.tsx index 0665599..d6dde83 100644 --- a/src/pages/dashboards/home/blocks/Card.tsx +++ b/src/pages/dashboards/home/blocks/Card.tsx @@ -19,7 +19,7 @@ const Card = ({ title, total, growth, surplus, icon }: CardDataProduct) => {
{title} - {total} + {total.toFixed(2)} Date: Sat, 10 May 2025 20:00:26 +0700 Subject: [PATCH 3/6] update --- src/pages/dashboards/home/DashboardHomePage.tsx | 10 ++++++++-- src/pages/dashboards/home/blocks/Card.tsx | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pages/dashboards/home/DashboardHomePage.tsx b/src/pages/dashboards/home/DashboardHomePage.tsx index 0ff5b34..a1ada5d 100644 --- a/src/pages/dashboards/home/DashboardHomePage.tsx +++ b/src/pages/dashboards/home/DashboardHomePage.tsx @@ -234,6 +234,12 @@ const DashboardHomePage = () => {
); + const number: number = responseStatisticCard?.data.total_cash_in ?? 0; + const formattedNumber: number = parseFloat(number.toFixed(2)); + + const numbercashout: number = responseStatisticCard?.data.total_cash_out ?? 0; + const formattedNumbercashout: number = parseFloat(number.toFixed(2)); + return ( <> @@ -266,14 +272,14 @@ const DashboardHomePage = () => { /> {
{title} - {total.toFixed(2)} + {total} Date: Sat, 10 May 2025 20:01:19 +0700 Subject: [PATCH 4/6] update --- src/pages/dashboards/home/DashboardHomePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/dashboards/home/DashboardHomePage.tsx b/src/pages/dashboards/home/DashboardHomePage.tsx index a1ada5d..b10125f 100644 --- a/src/pages/dashboards/home/DashboardHomePage.tsx +++ b/src/pages/dashboards/home/DashboardHomePage.tsx @@ -238,7 +238,7 @@ const DashboardHomePage = () => { const formattedNumber: number = parseFloat(number.toFixed(2)); const numbercashout: number = responseStatisticCard?.data.total_cash_out ?? 0; - const formattedNumbercashout: number = parseFloat(number.toFixed(2)); + const formattedNumbercashout: number = parseFloat(numbercashout.toFixed(2)); return ( <> From 6681ba1da89f4d251cd87a5f7e8f39069113f1c3 Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Sun, 11 May 2025 11:52:48 +0700 Subject: [PATCH 5/6] update --- src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx b/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx index 9b30b1b..833492e 100644 --- a/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx +++ b/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx @@ -109,7 +109,8 @@ const TransactionWithdraw = () => { pin: form.pin, purpose: form.purpose, id_transaction_type: "20c8a690-dc02-463d-b391-324184d1fefa", - id_origin_customer: getAuth()?.id + id_origin_customer: getAuth()?.id, + type:"S" }); if (response?.status == true) { await fetchWallets(); From 680b019624221f7d84b0d617c4ddd1e4df8d1fcb Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Sun, 11 May 2025 12:25:23 +0700 Subject: [PATCH 6/6] update --- src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx b/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx index 833492e..55a7b97 100644 --- a/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx +++ b/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx @@ -110,7 +110,7 @@ const TransactionWithdraw = () => { purpose: form.purpose, id_transaction_type: "20c8a690-dc02-463d-b391-324184d1fefa", id_origin_customer: getAuth()?.id, - type:"S" + type:"R" }); if (response?.status == true) { await fetchWallets();