diff --git a/agent/invoice.php b/agent/invoice.php index 9998f8ee..fe1031c2 100644 --- a/agent/invoice.php +++ b/agent/invoice.php @@ -649,25 +649,13 @@ if (isset($_GET['invoice_id'])) { $payment_reference = escapeHtml($row['payment_reference']); $account_name = escapeHtml($row['account_name']); - // Refunds are negative rows linked back to the payment they reverse - $payment_is_refund = !is_null($row['payment_refund_of_id']); - $payment_refundable = $payment_is_refund ? 0.00 : round($payment_amount - getPaymentRefundedTotal($payment_id), 2); - ?>