Merge branch 'master' of github.com:akaunting/akaunting
This commit is contained in:
commit
eeddf10383
@ -25,8 +25,8 @@ class DeleteTransfer extends Job
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->deleteRelationships($this->transfer, ['expense_transaction', 'income_transaction']);
|
||||
|
||||
$this->transfer->expense_transaction->delete();
|
||||
$this->transfer->income_transaction->delete();
|
||||
$this->transfer->delete();
|
||||
|
||||
return true;
|
||||
|
@ -75,11 +75,6 @@ class Transaction extends Model
|
||||
return $this->morphOne('App\Models\Common\Recurring', 'recurable');
|
||||
}
|
||||
|
||||
public function transfers()
|
||||
{
|
||||
return $this->hasMany('App\Models\Banking\Transfer');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Auth\User', 'contact_id', 'id');
|
||||
|
Loading…
x
Reference in New Issue
Block a user