progress in explore accounts

This commit is contained in:
Hesabix 2025-01-29 15:00:45 +00:00
parent 0ccdf63b84
commit c65df9475e
3 changed files with 908 additions and 808 deletions

1695
hesabixCore/composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,17 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
final class ExploreAccountsController extends AbstractController
{
#[Route('/explore/accounts', name: 'app_explore_accounts')]
public function index(): JsonResponse
{
return $this->json([]);
}
}

View file

@ -667,7 +667,7 @@ class ReportController extends AbstractController
return $this->json(Explore::ExploreHesabdariRows($items)); return $this->json(Explore::ExploreHesabdariRows($items));
} }
private function tree2flat(Person|HesabdariTable|BankAccount|Cashdesk $item, array $acc): array private function tree2flat(Person|HesabdariTable|BankAccount|Cashdesk|Salary $item, array $acc): array
{ {
$res = []; $res = [];
if ($this->getEntityName($item) == 'App\Entity\HesabdariTable') { if ($this->getEntityName($item) == 'App\Entity\HesabdariTable') {