1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fix partially refunded status

This commit is contained in:
David Bomba 2021-01-11 21:51:54 +11:00
parent df55785df9
commit 6098700823

View File

@ -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;