Merge branch 'master' into discount-per-item

This commit is contained in:
Burak Çakırel
2020-03-24 00:18:09 +03:00
6 changed files with 40 additions and 17 deletions

View File

@ -32,7 +32,7 @@ class Transfer extends Model
public function expense_account()
{
return $this->belongsTo('App\Models\Banking\Account', 'expense_transaction.account_id', 'id');
return $this->belongsTo('App\Models\Banking\Account', 'expense_transaction.account_id', 'id')->withDefault(['name' => trans('general.na')]);
}
public function income_transaction()
@ -42,6 +42,6 @@ class Transfer extends Model
public function income_account()
{
return $this->belongsTo('App\Models\Banking\Account', 'income_transaction.account_id', 'id');
return $this->belongsTo('App\Models\Banking\Account', 'income_transaction.account_id', 'id')->withDefault(['name' => trans('general.na')]);
}
}