change the report/map routes into v2
This commit is contained in:
@@ -7,7 +7,7 @@ trait ReceiptReportAble
|
||||
{
|
||||
public static function cityReceiptData($from_date, $date_to, $province_id): array
|
||||
{
|
||||
return DB::select(DB::raw(
|
||||
return DB::select(
|
||||
'SELECT
|
||||
city_fa,
|
||||
city_id,
|
||||
@@ -25,13 +25,13 @@ trait ReceiptReportAble
|
||||
where created_at BETWEEN "'.$from_date.'" AND "'.$date_to.'" AND province_id ='.$province_id.'
|
||||
GROUP BY city_id
|
||||
'
|
||||
));
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
public static function provinceReceiptData($from_date, $date_to) : array {
|
||||
|
||||
return DB::select(DB::raw(
|
||||
return DB::select(
|
||||
'SELECT
|
||||
"کشوری" as province_fa,
|
||||
-1 as province_id,
|
||||
@@ -67,7 +67,7 @@ trait ReceiptReportAble
|
||||
where created_at BETWEEN "'.$from_date.'" AND "'.$date_to.'"
|
||||
GROUP BY province_id
|
||||
'
|
||||
));
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user