mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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)
|
||||
{
|
||||
//we cannot restore a deleted payment.
|
||||
if ($credit->is_deleted) {
|
||||
if (! $credit->trashed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user