GermanyEntryReportOssDataService
Table of Contents
Properties
-
$cloudStorageService
: CloudStorageService
-
$countryRepository
: CountryRepository
-
$destinationCountries
: array<string|int, mixed>
-
$entryReportFileStorage
: EntryReportFileStorage
-
$vatRateHistoryRepository
: VatRateHistoryRepository
Methods
-
__construct()
: mixed
-
fetch()
: array<string|int, array<string|int, mixed>>
-
formatData()
: array<string|int, mixed>
-
loadData()
: array<string|int, mixed>|string
-
mergeStandardReduced()
: array<string|int, mixed>
-
formatStandardReduceData()
: array<string|int, mixed>
-
getBucket()
: mixed
-
getCountryInfo()
: Country
-
getRecordType()
: int
-
isEuMember()
: bool
-
numberFormat()
: string
-
replaceCountryCode()
: string
__construct()
public
__construct() : mixed
fetch()
public
fetch(EntryReportVersion $entry) : array<string|int, array<string|int, mixed>>
Parameters
-
$entry
: EntryReportVersion
-
-
throws
-
FileNotFoundException
Return values
array<string|int, array<string|int, mixed>>
public
formatData(EntryReportVersion $entryVersion, mixed $data) : array<string|int, mixed>
Parameters
-
$entryVersion
: EntryReportVersion
-
-
$data
: mixed
-
Return values
array<string|int, mixed>
loadData()
public
loadData(EntryReportVersion $entryVersion, mixed $sheetIndex) : array<string|int, mixed>|string
Parameters
-
$entryVersion
: EntryReportVersion
-
-
$sheetIndex
: mixed
-
-
throws
-
FileNotFoundException
Return values
array<string|int, mixed>|string
mergeStandardReduced()
public
mergeStandardReduced(mixed $standardReduced1, mixed $standardReduced2) : array<string|int, mixed>
Parameters
-
$standardReduced1
: mixed
-
-
$standardReduced2
: mixed
-
Return values
array<string|int, mixed>
private
formatStandardReduceData(mixed $date, mixed $dispatchCountry, mixed $destinationCountry, mixed $countryVatId, mixed $vatRate, mixed $netValue, mixed $vatValue) : array<string|int, mixed>
Parameters
-
$date
: mixed
-
-
$dispatchCountry
: mixed
-
-
$destinationCountry
: mixed
-
-
$countryVatId
: mixed
-
-
$vatRate
: mixed
-
-
$netValue
: mixed
-
-
$vatValue
: mixed
-
Return values
array<string|int, mixed>
getBucket()
private
getBucket() : mixed
getCountryInfo()
private
getCountryInfo(mixed $countryCode) : Country
Parameters
-
$countryCode
: mixed
-
getRecordType()
private
getRecordType(mixed $dispatchCountry, mixed $destinationCountryCode) : int
Parameters
-
$dispatchCountry
: mixed
-
-
$destinationCountryCode
: mixed
-
isEuMember()
private
isEuMember(mixed $countryCode) : bool
Parameters
-
$countryCode
: mixed
-
private
numberFormat(mixed $value) : string
Parameters
-
$value
: mixed
-
replaceCountryCode()
private
replaceCountryCode(mixed $code) : string
Parameters
-
$code
: mixed
-