Only current year
This commit is contained in:
parent
66e0bf8aa6
commit
e225ab62c4
@ -94,6 +94,9 @@ class EconomyRepository extends AbstractRepository implements EconomyContractInt
|
|||||||
->where(DB::raw("TO_DATE(economia.mes, 'YYMM')"),
|
->where(DB::raw("TO_DATE(economia.mes, 'YYMM')"),
|
||||||
">=",
|
">=",
|
||||||
DB::raw("TO_DATE(TO_CHAR(current_date, 'YYYY-01-01'), 'YYYY-MM-DD')"))
|
DB::raw("TO_DATE(TO_CHAR(current_date, 'YYYY-01-01'), 'YYYY-MM-DD')"))
|
||||||
|
->where(DB::raw("TO_DATE(economia.mes, 'YYMM')"),
|
||||||
|
"<=",
|
||||||
|
DB::raw("TO_DATE(TO_CHAR(current_date, 'YYYY-12-31'), 'YYYY-MM-DD')"))
|
||||||
->groupBy(['mes', 'dad_estimado'])
|
->groupBy(['mes', 'dad_estimado'])
|
||||||
->orderBy(DB::raw("mes, dad_estimado"))
|
->orderBy(DB::raw("mes, dad_estimado"))
|
||||||
->havingRaw("sum(custo_livre) > 0")
|
->havingRaw("sum(custo_livre) > 0")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user