EntryService
in package
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
$auth
private
AuthComponent
$auth
$config
private
Config
$config
$entityManager
private
EntityManager
$entityManager
$entryBankingDetailService
private
EntryBankingDetailService
$entryBankingDetailService
$entryComponent
private
EntryComponent
$entryComponent
$entryDataReceivedService
private
EntryDataReceivedService
$entryDataReceivedService
$entryDownloadService
private
EntryDownloadService
$entryDownloadService
$entryFilingCompanyService
private
EntryFilingCompanyService
$entryFilingCompanyService
$entryFilterService
private
EntryFilterService
$entryFilterService
$entryListMapper
private
EntryListMapper
$entryListMapper
$entryRepository
private
EntryRepository
$entryRepository
$entryTimelineMapper
private
EntryTimelineMapper
$entryTimelineMapper
$loggerService
private
LoggerService
$loggerService
$reportMissingInfoProviderService
private
ReportMissingInfoProviderService
$reportMissingInfoProviderService
$securityProvider
private
ISecurityProvider
$securityProvider
$snapshotService
private
SnapshotService
$snapshotService
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
intcountQualityControlNotDoneInPeriodByClientIdAndPeriod()
public
countQualityControlNotDoneInPeriodByClientIdAndPeriod(int $clientId, DateTime $periodStart, DateTime $periodEnd) : int
Parameters
- $clientId : int
- $periodStart : DateTime
- $periodEnd : DateTime
Return values
intgetBacklogCompletedByCountryId()
public
getBacklogCompletedByCountryId(int $countryId, mixed $limit, mixed $offset) : array<string|int, mixed>
Parameters
- $countryId : int
- $limit : mixed
- $offset : mixed
Tags
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
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
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
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
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
Return values
array<string|int, mixed>getBaseEntryFilterForClientView()
public
getBaseEntryFilterForClientView() : mixed
getEntries()
public
getEntries() : array<string|int, Entry>
Tags
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>|nullgetEntriesByIdList()
public
getEntriesByIdList(array<string|int, int> $idList) : array<string|int, Entry>
Parameters
- $idList : array<string|int, int>
Tags
Return values
array<string|int, Entry>getEntriesByUserId()
public
getEntriesByUserId(int $userId) : array<string|int, Entry>
Parameters
- $userId : int
Tags
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
Return values
array<string|int, mixed>|nullgetEntriesToTimelineByUserId()
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
Return values
array<string|int, mixed>|nullgetEntryById()
public
getEntryById(int $id) : Entry|null
Parameters
- $id : int
Tags
Return values
Entry|nullgetEntryReportFilenameListByEntryIdListAndUrlFileType()
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>|nullgetPossibleEcFiling()
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
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
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
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>|nullgetTotalEcCsIntrastatDone()
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
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
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
Return values
array<string|int, mixed>getUserHasVatToPay()
public
getUserHasVatToPay(int $clientId) : bool
Parameters
- $clientId : int
Return values
boolhasEntryByYear()
public
hasEntryByYear(int $clientId, int $year) : bool
Parameters
- $clientId : int
- $year : int
Return values
boolmakeViewEntries()
public
makeViewEntries(array<string|int, Entry> $rawEntries) : array<string|int, Entry>
Parameters
- $rawEntries : array<string|int, Entry>
Tags
Return values
array<string|int, Entry>undercoverOffByEntryId()
public
undercoverOffByEntryId(int $entryId) : mixed|Entry|null
Parameters
- $entryId : int
Tags
Return values
mixed|Entry|nullundercoverOffByEntryIdList()
public
undercoverOffByEntryIdList(array<string|int, mixed> $entryIdList) : mixed
Parameters
- $entryIdList : array<string|int, mixed>
Tags
undercoverOnByEntryId()
public
undercoverOnByEntryId(int $entryId) : mixed|Entry|null
Parameters
- $entryId : int
Tags
Return values
mixed|Entry|nullundercoverOnByEntryIdList()
public
undercoverOnByEntryIdList(array<string|int, mixed> $entryIdList) : mixed
Parameters
- $entryIdList : array<string|int, mixed>
Tags
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
Return values
EntryFiltergetHistoryByEntry()
private
getHistoryByEntry(Entry $entry) : array<string|int, EntryEvent>
Parameters
- $entry : Entry
Return values
array<string|int, EntryEvent>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
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|nullgetTotalDone()
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.