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:
parent
df55785df9
commit
6098700823
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user