mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Greatly expanded report functionality.
This commit is contained in:
@@ -111,7 +111,7 @@ class TransactionJournal extends Eloquent
|
||||
*/
|
||||
public function scopeAfter($query, Carbon $date)
|
||||
{
|
||||
return $query->where('date', '>=', $date->format('Y-m-d'));
|
||||
return $query->where('transaction_journals.date', '>=', $date->format('Y-m-d 00:00:00'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -122,7 +122,7 @@ class TransactionJournal extends Eloquent
|
||||
*/
|
||||
public function scopeBefore($query, Carbon $date)
|
||||
{
|
||||
return $query->where('date', '<=', $date->format('Y-m-d'));
|
||||
return $query->where('transaction_journals.date', '<=', $date->format('Y-m-d 00:00:00'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user