1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for getCompletedAmount

This commit is contained in:
Hillel Coren 2017-10-22 00:38:40 +03:00
parent 855576018b
commit 9a482f80f6

View File

@ -295,10 +295,6 @@ class Payment extends EntityModel
*/
public function getCompletedAmount()
{
if ($this->isFailed() || $this->isVoided()) {
return 0;
}
return $this->amount - $this->refunded;
}