mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
Small bug fixed in account scope.
This commit is contained in:
parent
c140f71878
commit
b6e0b985c2
@ -30,7 +30,7 @@ use LaravelBook\Ardent\Builder;
|
|||||||
* @method static \Illuminate\Database\Query\Builder|\Transaction whereTransactionJournalId($value)
|
* @method static \Illuminate\Database\Query\Builder|\Transaction whereTransactionJournalId($value)
|
||||||
* @method static \Illuminate\Database\Query\Builder|\Transaction whereDescription($value)
|
* @method static \Illuminate\Database\Query\Builder|\Transaction whereDescription($value)
|
||||||
* @method static \Illuminate\Database\Query\Builder|\Transaction whereAmount($value)
|
* @method static \Illuminate\Database\Query\Builder|\Transaction whereAmount($value)
|
||||||
* @method static \Transaction account($account)
|
* @method static \Transaction accountIs($account)
|
||||||
* @method static \Transaction after($date)
|
* @method static \Transaction after($date)
|
||||||
* @method static \Transaction before($date)
|
* @method static \Transaction before($date)
|
||||||
* @method static \Transaction lessThan($amount)
|
* @method static \Transaction lessThan($amount)
|
||||||
@ -89,7 +89,7 @@ class Transaction extends Ardent
|
|||||||
return $this->belongsTo('Piggybank');
|
return $this->belongsTo('Piggybank');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeAccount(Builder $query, Account $account)
|
public function scopeAccountIs(Builder $query, Account $account)
|
||||||
{
|
{
|
||||||
$query->where('transactions.account_id', $account->id);
|
$query->where('transactions.account_id', $account->id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user