From 6098700823a0e909c2151de365c8c8243253559e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 11 Jan 2021 21:51:54 +1100 Subject: [PATCH] Fix partially refunded status --- app/Services/Payment/RefundPayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Payment/RefundPayment.php b/app/Services/Payment/RefundPayment.php index 39e742474d61..2bb590f32c1b 100644 --- a/app/Services/Payment/RefundPayment.php +++ b/app/Services/Payment/RefundPayment.php @@ -142,7 +142,7 @@ class RefundPayment */ private function setStatus() { - if ($this->refund_data['amount'] == $this->payment->amount) { + if ($this->total_refund == $this->payment->amount) { $this->payment->status_id = Payment::STATUS_REFUNDED; } else { $this->payment->status_id = Payment::STATUS_PARTIALLY_REFUNDED;