Documentation

EntryService
in package

FinalYes

Table of Contents

Properties

$auth  : AuthComponent
$config  : Config
$entityManager  : EntityManager
$entryBankingDetailService  : EntryBankingDetailService
$entryComponent  : EntryComponent
$entryDataReceivedService  : EntryDataReceivedService
$entryDownloadService  : EntryDownloadService
$entryFilingCompanyService  : EntryFilingCompanyService
$entryFilterService  : EntryFilterService
$entryListMapper  : EntryListMapper
$entryRepository  : EntryRepository
$entryTimelineMapper  : EntryTimelineMapper
$loggerService  : LoggerService
$reportMissingInfoProviderService  : ReportMissingInfoProviderService
$securityProvider  : ISecurityProvider
$snapshotService  : SnapshotService

Methods

__construct()  : mixed
EntryService constructor.
countNotPaidReturns()  : int
countQualityControlNotDoneInPeriodByClientIdAndPeriod()  : int
getBacklogCompletedByCountryId()  : array<string|int, mixed>
getBacklogCompletedInCurrentMonth()  : array<string|int, mixed>
getBacklogKpiBreakByCountryId()  : array<string|int, mixed>
getBacklogKpiBreakInCurrentMonth()  : array<string|int, mixed>
getBacklogNewByCountryId()  : array<string|int, mixed>
getBacklogOpenByCountryId()  : array<string|int, mixed>
getBaseEntryFilterForClientView()  : mixed
getEntries()  : array<string|int, Entry>
getEntriesByClientIdAndSubmitDateAndReportTypeIdList()  : array<string|int, mixed>|array<string|int, Entry>|null
getEntriesByIdList()  : array<string|int, Entry>
getEntriesByUserId()  : array<string|int, Entry>
getEntriesToListViewByUserId()  : array<string|int, mixed>|null
getEntriesToTimelineByUserId()  : array<string|int, mixed>|null
getEntryById()  : Entry|null
getEntryReportFilenameListByEntryIdListAndUrlFileType()  : array<string|int, mixed>|null
getPossibleEcFiling()  : array<string|int, mixed>
Get possible Ec filing for automations for a given country.
getPossibleOssFiling()  : array<string|int, mixed>
Get possible OSS filing for automations for a given country.
getPossibleVatFiling()  : array<string|int, mixed>
Get possible VAT filing for automations for a given country.
getQualityControlNotDoneInPeriodByClientIdAndPeriod()  : array<string|int, mixed>|array<string|int, Entry>|null
getTotalEcCsIntrastatDone()  : array<string|int, mixed>
Retrieve filing done for EC report type
getTotalEcDone()  : array<string|int, mixed>
Retrieve filing done for EC report type
getTotalVatDone()  : array<string|int, mixed>
Retrieve filing done for VAT report type
getUserHasVatToPay()  : bool
hasEntryByYear()  : bool
makeViewEntries()  : array<string|int, Entry>
undercoverOffByEntryId()  : mixed|Entry|null
undercoverOffByEntryIdList()  : mixed
undercoverOnByEntryId()  : mixed|Entry|null
undercoverOnByEntryIdList()  : mixed
updateFilingCompanyByEntryId()  : mixed
buildEntryFilter()  : EntryFilter
getHistoryByEntry()  : array<string|int, EntryEvent>
getPossibleFiling()  : array<string|int, mixed>
Generic helper method to retrieve possible filing data for automations with pagination.
getSubmitUserByEntryReportAndEntryPasts()  : UserAccount|null
getTotalDone()  : array<string|int, mixed>
Generic helper method to retrieve filing done data for automations with pagination.

Properties

Methods

__construct()

EntryService constructor.

public __construct(EntryFilingCompanyService $entryFilingCompanyService, EntryDataReceivedService $entryDataReceivedService, EntryFilterService $entryFilterService, EntryDownloadService $entryDownloadService, EntryBankingDetailService $entryBankingDetailService, EntryRepository $entryRepository, ISecurityProvider $securityProvider, EntityManager $entityManager, EntryTimelineMapper $entryTimelineMapper, EntryListMapper $entryListMapper, AuthComponent $authComponent, ReportMissingInfoProviderService $reportMissingInfoProviderService, EntryComponent $entryComponent, Config $config, LoggerService $loggerService, SnapshotService $snapshotService) : mixed
Parameters
$entryFilingCompanyService : EntryFilingCompanyService
$entryDataReceivedService : EntryDataReceivedService
$entryFilterService : EntryFilterService
$entryDownloadService : EntryDownloadService
$entryBankingDetailService : EntryBankingDetailService
$entryRepository : EntryRepository
$securityProvider : ISecurityProvider
$entityManager : EntityManager
$entryTimelineMapper : EntryTimelineMapper
$entryListMapper : EntryListMapper
$authComponent : AuthComponent
$reportMissingInfoProviderService : ReportMissingInfoProviderService
$entryComponent : EntryComponent
$config : Config
$loggerService : LoggerService
$snapshotService : SnapshotService

countNotPaidReturns()

public countNotPaidReturns(int $clientId) : int
Parameters
$clientId : int
Return values
int

countQualityControlNotDoneInPeriodByClientIdAndPeriod()

public countQualityControlNotDoneInPeriodByClientIdAndPeriod(int $clientId, DateTime $periodStart, DateTime $periodEnd) : int
Parameters
$clientId : int
$periodStart : DateTime
$periodEnd : DateTime
Return values
int

getBacklogCompletedByCountryId()

public getBacklogCompletedByCountryId(int $countryId, mixed $limit, mixed $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : mixed
$offset : mixed
Tags
throws
Exception
Return values
array<string|int, mixed>

getBacklogCompletedInCurrentMonth()

public getBacklogCompletedInCurrentMonth(int $countryId, int $limit, int $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : int
$offset : int
Tags
throws
NonUniqueResultException
throws
Exception
Return values
array<string|int, mixed>

getBacklogKpiBreakByCountryId()

public getBacklogKpiBreakByCountryId(int $countryId, mixed $limit, mixed $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : mixed
$offset : mixed
Tags
throws
DateMalformedStringException
throws
Exception
Return values
array<string|int, mixed>

getBacklogKpiBreakInCurrentMonth()

public getBacklogKpiBreakInCurrentMonth(int $countryId, string $date, int $limit, int $offset) : array<string|int, mixed>
Parameters
$countryId : int
$date : string
$limit : int
$offset : int
Tags
throws
NonUniqueResultException
throws
Exception
Return values
array<string|int, mixed>

getBacklogNewByCountryId()

public getBacklogNewByCountryId(int $countryId, mixed $limit, mixed $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : mixed
$offset : mixed
Tags
throws
Exception
Return values
array<string|int, mixed>

getBacklogOpenByCountryId()

public getBacklogOpenByCountryId(int $countryId, mixed $limit, mixed $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : mixed
$offset : mixed
Tags
throws
NonUniqueResultException
throws
Exception
Return values
array<string|int, mixed>

getBaseEntryFilterForClientView()

public getBaseEntryFilterForClientView() : mixed

getEntries()

public getEntries() : array<string|int, Entry>
Tags
throws
Exception
Return values
array<string|int, Entry>

getEntriesByClientIdAndSubmitDateAndReportTypeIdList()

public getEntriesByClientIdAndSubmitDateAndReportTypeIdList(int $clientId, DateTime $submitDateTime, array<string|int, mixed> $reportTypeIdList) : array<string|int, mixed>|array<string|int, Entry>|null
Parameters
$clientId : int
$submitDateTime : DateTime
$reportTypeIdList : array<string|int, mixed>
Return values
array<string|int, mixed>|array<string|int, Entry>|null

getEntriesByIdList()

public getEntriesByIdList(array<string|int, int> $idList) : array<string|int, Entry>
Parameters
$idList : array<string|int, int>
Tags
throws
Exception
Return values
array<string|int, Entry>

getEntriesByUserId()

public getEntriesByUserId(int $userId) : array<string|int, Entry>
Parameters
$userId : int
Tags
throws
Exception
Return values
array<string|int, Entry>

getEntriesToListViewByUserId()

public getEntriesToListViewByUserId(int $userId, int|null $offset, int|null $limit) : array<string|int, mixed>|null
Parameters
$userId : int
$offset : int|null
$limit : int|null
Tags
throws
Exception
Return values
array<string|int, mixed>|null

getEntriesToTimelineByUserId()

public getEntriesToTimelineByUserId(int $userId, int|null $offset, int|null $limit, int|null $countryId, int|null $reportTypeId, string|null $startDate, string|null $endDate) : array<string|int, mixed>|null
Parameters
$userId : int
$offset : int|null
$limit : int|null
$countryId : int|null
$reportTypeId : int|null
$startDate : string|null
$endDate : string|null
Tags
throws
Exception
Return values
array<string|int, mixed>|null

getEntryById()

public getEntryById(int $id) : Entry|null
Parameters
$id : int
Tags
throws
Exception
Return values
Entry|null

getEntryReportFilenameListByEntryIdListAndUrlFileType()

public getEntryReportFilenameListByEntryIdListAndUrlFileType(array<string|int, mixed> $entryIdList, string $fileType) : array<string|int, mixed>|null
Parameters
$entryIdList : array<string|int, mixed>
$fileType : string
Return values
array<string|int, mixed>|null

getPossibleEcFiling()

Get possible Ec filing for automations for a given country.

public getPossibleEcFiling(int $countryId, int $limit, int $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : int
$offset : int
Tags
throws
NonUniqueResultException
Return values
array<string|int, mixed>

The paging structure and entries as described above.

getPossibleOssFiling()

Get possible OSS filing for automations for a given country.

public getPossibleOssFiling(int $countryId, int $limit, int $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : int
$offset : int
Tags
throws
NonUniqueResultException
Return values
array<string|int, mixed>

The paging structure and entries as described above.

getPossibleVatFiling()

Get possible VAT filing for automations for a given country.

public getPossibleVatFiling(int $countryId, int $limit, int $offset) : array<string|int, mixed>

If the country is PL (using the constant CountryEntityInterface::ID_OF_PL) then it uses the SAFT JPK type, otherwise, it uses the VAT type.

Parameters
$countryId : int
$limit : int
$offset : int
Tags
throws
NonUniqueResultException
Return values
array<string|int, mixed>

The paging structure and entries as described above.

getQualityControlNotDoneInPeriodByClientIdAndPeriod()

public getQualityControlNotDoneInPeriodByClientIdAndPeriod(int $clientId, DateTime $periodStart, DateTime $periodEnd) : array<string|int, mixed>|array<string|int, Entry>|null
Parameters
$clientId : int
$periodStart : DateTime
$periodEnd : DateTime
Return values
array<string|int, mixed>|array<string|int, Entry>|null

getTotalEcCsIntrastatDone()

Retrieve filing done for EC report type

public getTotalEcCsIntrastatDone(int $countryId, int $limit, int $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : int
$offset : int
Tags
throws
NonUniqueResultException
Return values
array<string|int, mixed>

getTotalEcDone()

Retrieve filing done for EC report type

public getTotalEcDone(int $countryId, int $limit, int $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : int
$offset : int
Tags
throws
NonUniqueResultException
Return values
array<string|int, mixed>

getTotalVatDone()

Retrieve filing done for VAT report type

public getTotalVatDone(int $countryId, int $limit, int $offset) : array<string|int, mixed>
Parameters
$countryId : int
$limit : int
$offset : int
Tags
throws
NonUniqueResultException
Return values
array<string|int, mixed>

getUserHasVatToPay()

public getUserHasVatToPay(int $clientId) : bool
Parameters
$clientId : int
Return values
bool

hasEntryByYear()

public hasEntryByYear(int $clientId, int $year) : bool
Parameters
$clientId : int
$year : int
Return values
bool

makeViewEntries()

public makeViewEntries(array<string|int, Entry$rawEntries) : array<string|int, Entry>
Parameters
$rawEntries : array<string|int, Entry>
Tags
throws
Exception
Return values
array<string|int, Entry>

undercoverOffByEntryId()

public undercoverOffByEntryId(int $entryId) : mixed|Entry|null
Parameters
$entryId : int
Tags
throws
Exception
Return values
mixed|Entry|null

undercoverOffByEntryIdList()

public undercoverOffByEntryIdList(array<string|int, mixed> $entryIdList) : mixed
Parameters
$entryIdList : array<string|int, mixed>
Tags
throws
Exception

undercoverOnByEntryId()

public undercoverOnByEntryId(int $entryId) : mixed|Entry|null
Parameters
$entryId : int
Tags
throws
Exception
Return values
mixed|Entry|null

undercoverOnByEntryIdList()

public undercoverOnByEntryIdList(array<string|int, mixed> $entryIdList) : mixed
Parameters
$entryIdList : array<string|int, mixed>
Tags
throws
Exception

updateFilingCompanyByEntryId()

public updateFilingCompanyByEntryId(int $entryId, int|null $filingCompanyId) : mixed
Parameters
$entryId : int
$filingCompanyId : int|null

buildEntryFilter()

private buildEntryFilter(int $userId, int|null $offset, int|null $limit, int|null $countryId, int|null $reportTypeId, string|null $startDate, string|null $endDate) : EntryFilter
Parameters
$userId : int
$offset : int|null
$limit : int|null
$countryId : int|null
$reportTypeId : int|null
$startDate : string|null
$endDate : string|null
Tags
throws
Exception
Return values
EntryFilter

getPossibleFiling()

Generic helper method to retrieve possible filing data for automations with pagination.

private getPossibleFiling(int $countryId, int $limit, int $offset, array<string|int, mixed> $reportTypeIds) : array<string|int, mixed>
Parameters
$countryId : int
$limit : int
$offset : int
$reportTypeIds : array<string|int, mixed>

An array of report type IDs to filter with.

Tags
throws
NonUniqueResultException
throws
Exception
Return values
array<string|int, mixed>

getSubmitUserByEntryReportAndEntryPasts()

private getSubmitUserByEntryReportAndEntryPasts(EntryReport|null $entryReport, array<string|int, mixed>|null $entryPasts) : UserAccount|null
Parameters
$entryReport : EntryReport|null
$entryPasts : array<string|int, mixed>|null
Return values
UserAccount|null

getTotalDone()

Generic helper method to retrieve filing done data for automations with pagination.

private getTotalDone(int $countryId, int $limit, int $offset, array<string|int, mixed> $reportTypeIds) : array<string|int, mixed>
Parameters
$countryId : int
$limit : int
$offset : int
$reportTypeIds : array<string|int, mixed>

An array of report type IDs to filter with.

Tags
throws
NonUniqueResultException
throws
Exception
Return values
array<string|int, mixed>

        
On this page

Search results