mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-01 20:37:38 -04:00
Check if referral payments have been refunded
This commit is contained in:
parent
10fd839c78
commit
ec5f8ceb46
@ -295,10 +295,6 @@ class Payment extends EntityModel
|
|||||||
*/
|
*/
|
||||||
public function getCompletedAmount()
|
public function getCompletedAmount()
|
||||||
{
|
{
|
||||||
if ($this->isFailed() || $this->isVoided()) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->amount - $this->refunded;
|
return $this->amount - $this->refunded;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user