You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TrialBalance.php 846B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Filament\Company\Pages\Reports;
  3. use App\DTO\ReportDTO;
  4. use App\Services\ReportService;
  5. class TrialBalance extends BaseReportPage
  6. {
  7. protected static string $view = 'filament.company.pages.reports.trial-balance';
  8. protected static ?string $slug = 'reports/trial-balance';
  9. protected static bool $shouldRegisterNavigation = false;
  10. protected ReportService $reportService;
  11. public ReportDTO $trialBalanceReport;
  12. public function boot(ReportService $reportService): void
  13. {
  14. $this->reportService = $reportService;
  15. }
  16. public function getDefaultDateRange(): string
  17. {
  18. return 'FY-' . now()->year;
  19. }
  20. public function loadReportData(): void
  21. {
  22. $this->trialBalanceReport = $this->reportService->buildTrialBalanceReport($this->startDate, $this->endDate);
  23. }
  24. }