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()
|
public function handle()
|
||||||
{
|
{
|
||||||
$this->deleteRelationships($this->transfer, ['expense_transaction', 'income_transaction']);
|
$this->transfer->expense_transaction->delete();
|
||||||
|
$this->transfer->income_transaction->delete();
|
||||||
$this->transfer->delete();
|
$this->transfer->delete();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -75,11 +75,6 @@ class Transaction extends Model
|
|||||||
return $this->morphOne('App\Models\Common\Recurring', 'recurable');
|
return $this->morphOne('App\Models\Common\Recurring', 'recurable');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function transfers()
|
|
||||||
{
|
|
||||||
return $this->hasMany('App\Models\Banking\Transfer');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('App\Models\Auth\User', 'contact_id', 'id');
|
return $this->belongsTo('App\Models\Auth\User', 'contact_id', 'id');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user