mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 13:54:34 -04:00
fixes for restoring a credit
This commit is contained in:
parent
b63b3c707e
commit
b99e623100
@ -59,7 +59,7 @@ class CreditRepository extends BaseRepository
|
|||||||
public function restore($credit)
|
public function restore($credit)
|
||||||
{
|
{
|
||||||
//we cannot restore a deleted payment.
|
//we cannot restore a deleted payment.
|
||||||
if ($credit->is_deleted) {
|
if (! $credit->trashed()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user