Greatly expanded report functionality.

This commit is contained in:
James Cole
2014-12-28 08:54:53 +01:00
parent 9f23462c42
commit 4944b233b6
14 changed files with 540 additions and 316 deletions

View File

@@ -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'));
}
/**