From 961215fd58ca683a58abea7941d1519c8d08dff0 Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Thu, 28 Mar 2024 11:14:30 +0800 Subject: [PATCH] receipt download handler --- .../Payment/Details_GLD/PaymentDetails.js | 43 +++++++++-------- .../Payment/Details_Public/PaymentDetails.js | 47 ++++++++++--------- 2 files changed, 50 insertions(+), 40 deletions(-) diff --git a/src/pages/Payment/Details_GLD/PaymentDetails.js b/src/pages/Payment/Details_GLD/PaymentDetails.js index 9efe315..d74c937 100644 --- a/src/pages/Payment/Details_GLD/PaymentDetails.js +++ b/src/pages/Payment/Details_GLD/PaymentDetails.js @@ -150,25 +150,30 @@ const PaymentDetails = ({ formData,doPrint,onDownload }) => { - - - - - Payment Receipt: - - - - {onDownload? - - : - - } - - - + { + data.status == "APPR" + ? + + + + + Payment Receipt: + + + + {onDownload? + + : + + } + + + + : null + } diff --git a/src/pages/Payment/Details_Public/PaymentDetails.js b/src/pages/Payment/Details_Public/PaymentDetails.js index 2dea0fc..16d6a85 100644 --- a/src/pages/Payment/Details_Public/PaymentDetails.js +++ b/src/pages/Payment/Details_Public/PaymentDetails.js @@ -160,27 +160,32 @@ const PaymentDetails = ({ formData,doPrint,onDownload }) => { - - - - - : - - - - {onDownload? - - : - - } - - - + { + data.status == "APPR" + ? + + + + + : + + + + {onDownload? + + : + + } + + + + : null + }