mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 02:04:30 -04:00
Fix for getCompletedAmount
This commit is contained in:
parent
855576018b
commit
9a482f80f6
@ -295,10 +295,6 @@ class Payment extends EntityModel
|
||||
*/
|
||||
public function getCompletedAmount()
|
||||
{
|
||||
if ($this->isFailed() || $this->isVoided()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return $this->amount - $this->refunded;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user