From 04903b33eda03a5a79e84dbd4e5c6736152ad5fb Mon Sep 17 00:00:00 2001 From: jouls Date: Wed, 17 Apr 2024 18:36:04 +0800 Subject: [PATCH] minor changes on upcoming payout amount computation --- vendor-payouts.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vendor-payouts.php b/vendor-payouts.php index 4ecb0b4..52cafaf 100644 --- a/vendor-payouts.php +++ b/vendor-payouts.php @@ -185,9 +185,9 @@ $vendorPayoutData = json_decode($response, true); foreach ($upcomingPayout as $x => $val) { $paymentStatus = strtolower($val['payment']['status']); - $orderStatus = $val['status']; + $orderStatus = strtolower($val['status']); $payoutStatus = empty($val['payout_status']); - if(( $paymentStatus == "paid") && ( $orderStatus == "COMPLETED") && ($payoutStatus == true)){ + if(( $paymentStatus == "paid") && ( $orderStatus == "completed") && ($payoutStatus == true)){ $orderAmount = $val['total_amount']; $payoutSum += $orderAmount; } @@ -219,7 +219,7 @@ $vendorPayoutData = json_decode($response, true); -
+ +
-
Receipient: Philippine National Bank (PNB) Account ending in
- + -->
Payout History