Laravel Vapor - New UI for admin to download reports (sync code from Shipping Portal)

This commit is contained in:
Dillon Ngo
2024-10-12 16:13:21 +08:00
parent 1d73bc108f
commit 80a016be28
3 changed files with 4 additions and 4 deletions
@@ -52,7 +52,7 @@ class ExportsAnalyticBookingTransactions implements FromQuery, WithHeadings, Wit
*/
public function query()
{
return Booking::query()->whereBetween('created_at', [Carbon::now()->subMonths(3), Carbon::now()]); //Limit, 'expensive' query;
return Booking::query()->whereBetween('created_at', [Carbon::now()->subMonths(2), Carbon::now()]); //Limit, 'expensive' query;
}
/**
@@ -29,7 +29,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping, Sho
{
return Transaction::whereIn('type', [TransactionType::PAYMENT, TransactionType::BILL])
->where('owner_type', '!=',Wallet::class)
->whereBetween('created_at', [Carbon::now()->subMonths(3), Carbon::now()]); //Limit, 'expensive' query;
->whereBetween('created_at', [Carbon::now()->subMonths(2), Carbon::now()]); //Limit, 'expensive' query;
}
/**