Documentation

GermanYearlyFilingExportHandler extends AbstractExportHandler
in package
implements GermanYearlyFilingExportHeaders uses GermanYearlyFilingExportCalculatorTrait

Table of Contents

Interfaces

GermanYearlyFilingExportHeaders

Constants

ACTIVE_HANDLERS  = [\Vatjar\Export\Component\TransactionVolumeExportHandler::class, \Vatjar\Export\Component\VatReportSummaryExportHandler::class, \Vatjar\Export\Component\MovementMissingCountryExportHandler::class, \Vatjar\Export\Component\StorageDetectionExportHandler::class, \Vatjar\Export\Component\TransactionToGbAfterBrexitExportHandler::class, \Vatjar\Export\Component\GermanYearlyFilingExportHandler::class, \Vatjar\Export\Component\ArrangedUserExportHandler::class, \Vatjar\Export\Component\YearlyTransactionCountExportHandler::class, \Vatjar\Export\Component\ItalianYearlyFilingExportHandler::class]
COLOR_BLUE  = 'C8DAF9'
COLOR_GREEN  = "92C47C"
COLOR_LIGHT_GREEN  = "D8EAD3"
COLOR_RED  = "FF0000"
COLOR_YELLOW  = 'FFE599'
EMPTY_STRING  = ""

Properties

$fileComponent  : mixed
$client  : Client|null
$deUserVat  : UserVat
$difference  : mixed
$differencePayableTaxField  : mixed
$differenceSubmission  : mixed
$emptyPeriod  : bool|null
$entryReportRepository  : EntryReportRepository
$entryReportsForPeriod  : array<string|int, EntryReport>
$entryReportsSummaries  : array<string|int, mixed>|null
$fields  : mixed
$preliminary  : mixed
$preliminaryPayableTaxField  : mixed
$preliminaryReportsForPeriod  : mixed
$preliminaryReportsSummaries  : array<string|int, mixed>
$reportIntentionRepository  : ReportIntentionRepository
$reportObligationRepository  : ReportObligationRepository
$reportRepository  : ReportRepository
$submissionProof  : mixed
$submissionProofPayableTaxField  : mixed
$submissionProofsSummaries  : array<string|int, mixed>|null
$submissionProofTotal  : mixed
$totalDifferenceRowsTitles  : mixed
$totalFiled  : mixed
$totalFiledPayableTaxField  : mixed
$userReportIntentions  : array<string|int, ReportIntention>
$userReportObligations  : array<string|int, ReportObligation>
$userVatRepository  : UserVatRepository
$versioned  : mixed
$versionedPayableTaxField  : mixed
$yearlyPreliminaryReport  : Report

Methods

__construct()  : mixed
calculateAll()  : mixed
calculateAllDifferences()  : mixed
calculateDifferenceBetweenFields()  : string
createJob()  : mixed
customRound()  : mixed
filterParams()  : array<string|int, mixed>
filterSummaries()  : array<string|int, mixed>
getAllowedFilters()  : array<string|int, mixed>
getBucketName()  : string
getClient()  : Client
getExportTypes()  : array<string|int, mixed>
getFileComponent()  : AbstractExportFile
getHeaders()  : array<string|int, mixed>
getLastRowsNumber()  : array<string|int, mixed>
getLine()  : mixed
Get the value of line
getLines()  : Generator<string|int, array<string|int, string>>
getSubmissionProofSummaryValue()  : mixed
getType()  : string
handle()  : mixed
markAsInProgress()  : mixed
validateParams()  : void
validatePositiveInteger()  : mixed
cloudPath()  : mixed
createFile()  : resource
filename()  : string|null
generateFile()  : void
getCloudStorageComponent()  : mixed
localPath()  : mixed
markAsDone()  : mixed
registerShutdownFunction()  : mixed
remoteUri()  : mixed
removeFile()  : mixed
saveError()  : mixed
saveToCloud()  : mixed
validateBool()  : bool
validateDate()  : bool
validateRequired()  : bool
validateString()  : bool
calculateAllDifferencesBetweenSubmissionProofAndPreliminaryFields()  : mixed
calculateAllDifferencesBetweenTotalFiledAndTotalVJFields()  : mixed
calculateAllDifferencesBetweenTotalVJFieldsAndTotalProofs()  : mixed
calculateAllDifferencesBetweenVersionedAndPreliminaryFields()  : mixed
calculateAllLatestPreliminaryReportFields()  : void
calculateAllLatestVersionedReportFields()  : mixed
calculateAllSubmissionProofsFields()  : mixed
calculateDifferenceBetweenGrossValueAndNetValue()  : mixed
calculateECAVAT19()  : string
calculateECAVAT7()  : string
calculateGrossValue()  : mixed
calculateL61ECA()  : string
calculateNetValue()  : mixed
calculatePayableTaxField()  : mixed
calculateVAT19()  : string
calculateVAT7()  : string
checkIfPeriodIsEmpty()  : mixed
convertToNumber()  : float
getDeReportObligations()  : array<string|int, mixed>
getDeUserVat()  : UserVat
getDifferenceBetweenLatestReportVersionSubmittedLineValuesAndLatestPreliminaryReportLineValues()  : array<string|int, mixed>
getDifferenceBetweenSubmissionProofLineValuesAndLatestPreliminaryReportLineValues()  : array<string|int, mixed>
getDifferenceLineValuesArray()  : array<string|int, mixed>
getEmptyRow()  : array<string|int, mixed>
getEntryReportsForPeriod()  : mixed
getLatestPreliminaryReportLineValues()  : array<string|int, mixed>
getLatestReportVersionSubmittedLineValues()  : array<string|int, mixed>
getLineDifferenceBetweenTotalFiledAndTotalVJ()  : array<string|int, mixed>
getLineDifferenceBetweenTotalVJAndTotalProofs()  : array<string|int, mixed>
getLinesValues()  : array<string|int, mixed>
getLineTotalFiled()  : array<string|int, mixed>
getLineTotalProofs()  : array<string|int, mixed>
getLineTotalVJ()  : array<string|int, mixed>
getPreliminaryReportsForPeriod()  : array<string|int, mixed>|null
getPreliminaryYearlyReport()  : mixed
getReportObligationPeriodMonthsDiff()  : mixed
getReportsSummaries()  : array<string|int, mixed>
getSubmissionProofLineValues()  : array<string|int, mixed>
getSubmissionProofSummaries()  : array<string|int, mixed>
getUserReportConfigurations()  : array<string|int, mixed>
Returns array combined of ReportIntention if exists, or an array of ReportObligation.
getUserReportIntentions()  : array<string|int, mixed>
validateEntryReportsForUserReportConfiguration()  : mixed
validatePreliminaryReportsForUserReportConfiguration()  : mixed

Constants

ACTIVE_HANDLERS

public mixed ACTIVE_HANDLERS = [\Vatjar\Export\Component\TransactionVolumeExportHandler::class, \Vatjar\Export\Component\VatReportSummaryExportHandler::class, \Vatjar\Export\Component\MovementMissingCountryExportHandler::class, \Vatjar\Export\Component\StorageDetectionExportHandler::class, \Vatjar\Export\Component\TransactionToGbAfterBrexitExportHandler::class, \Vatjar\Export\Component\GermanYearlyFilingExportHandler::class, \Vatjar\Export\Component\ArrangedUserExportHandler::class, \Vatjar\Export\Component\YearlyTransactionCountExportHandler::class, \Vatjar\Export\Component\ItalianYearlyFilingExportHandler::class]

Properties

$fields

private mixed $fields = ['L41ECS' => ['vatTypes' => ['ECS'], 'rates' => [], 'calculate' => 'calculateNetValue', 'roundValue' => true, 'roundEveryItem' => false], 'L81BMG19' => ['vatTypes' => ['DOMV', 'DST'], 'rates' => [19], 'calculate' => 'calculateNetValue', 'roundValue' => true, 'roundEveryItem' => true], 'VAT19' => ['vatTypes' => ['DOMV'], 'rates' => [19], 'calculate' => 'calculateVAT19'], 'L35BMG16_5' => ['vatTypes' => ['DST'], 'rates' => [16, 5], 'calculate' => 'calculateNetValue', 'roundValue' => true, 'roundEveryItem' => true], 'L36VAT16_5' => ['vatTypes' => ['DST'], 'rates' => [16, 5], 'calculate' => 'calculateGrossValue', 'roundValue' => true, 'roundEveryItem' => true], 'L86BMG7' => ['vatTypes' => ['DOMV'], 'rates' => [7], 'calculate' => 'calculateNetValue', 'roundValue' => true, 'roundEveryItem' => true], 'VAT7' => ['vatTypes' => ['DOMV'], 'rates' => [7], 'calculate' => 'calculateVAT7'], 'L87BMG0' => ['vatTypes' => ['DOMV'], 'rates' => [0], 'calculate' => 'calculateNetValue', 'roundValue' => true, 'roundEveryItem' => true], 'L89ECABMG19' => ['vatTypes' => ['ECA'], 'rates' => [19], 'calculate' => 'calculateNetValue', 'roundValue' => true], 'ECAVAT19' => ['vatTypes' => ['ECA'], 'rates' => [19], 'calculate' => 'calculateECAVAT19'], 'L95ECABMG16_5' => ['vatTypes' => ['ECA'], 'rates' => [16, 5], 'calculate' => 'calculateNetValue'], 'L98ECAVAT16_5' => ['vatTypes' => ['ECA'], 'rates' => [16, 5], 'calculate' => 'calculateGrossValue'], 'L93ECABMG7' => ['vatTypes' => ['ECA'], 'rates' => [7], 'calculate' => 'calculateNetValue'], 'ECAVAT7' => ['vatTypes' => ['ECA'], 'rates' => [7], 'calculate' => 'calculateECAVAT7'], 'L90ECA0' => ['vatTypes' => ['ECA'], 'rates' => [0], 'calculate' => 'calculateNetValue'], 'L43EXP' => ['vatTypes' => ['EXP', 'DEEM'], 'rates' => [], 'calculate' => 'calculateNetValue'], 'L45DST' => ['vatTypes' => ['DSF'], 'rates' => [], 'calculate' => 'calculateNetValue'], 'L66PUR' => ['vatTypes' => ['PUR'], 'rates' => [], 'calculate' => 'calculateDifferenceBetweenGrossValueAndNetValue'], 'L61ECA' => ['vatTypes' => ['ECA'], 'rates' => [], 'calculate' => 'calculateL61ECA'], 'L62IMP' => ['vatTypes' => ['IMP'], 'rates' => [], 'calculate' => 'calculateDifferenceBetweenGrossValueAndNetValue']]

Methods

__construct()

public __construct(EntryReportRepository $entryReportRepository, UserVatRepository $userVatRepository, ReportIntentionRepository $reportIntentionRepository, ReportObligationRepository $reportObligationRepository, ReportRepository $reportRepository) : mixed
Parameters
$entryReportRepository : EntryReportRepository
$userVatRepository : UserVatRepository
$reportIntentionRepository : ReportIntentionRepository
$reportObligationRepository : ReportObligationRepository
$reportRepository : ReportRepository

calculateAll()

public calculateAll(mixed &$property, mixed $summary[, mixed $calculateTotal = false ]) : mixed
Parameters
$property : mixed
$summary : mixed
$calculateTotal : mixed = false

calculateAllDifferences()

public calculateAllDifferences(mixed &$property, mixed $differenceLeftPart, mixed $differenceRightPart) : mixed
Parameters
$property : mixed
$differenceLeftPart : mixed
$differenceRightPart : mixed

calculateDifferenceBetweenFields()

public calculateDifferenceBetweenFields(mixed $field1, mixed $field2) : string
Parameters
$field1 : mixed
$field2 : mixed
Return values
string

filterParams()

public static filterParams(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
$params : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

filterSummaries()

public filterSummaries(mixed $array, mixed $vatTypes, mixed $vatRates) : array<string|int, mixed>
Parameters
$array : mixed
$vatTypes : mixed
$vatRates : mixed
Return values
array<string|int, mixed>

getClient()

public getClient(mixed $clientId, mixed $vatNumber, mixed $taxId) : Client
Parameters
$clientId : mixed
$vatNumber : mixed
$taxId : mixed
Tags
throws
NonUniqueResultException
throws
Exception
Return values
Client

getExportTypes()

public static getExportTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLines()

public getLines(array<string|int, mixed> $parameters) : Generator<string|int, array<string|int, string>>
Parameters
$parameters : array<string|int, mixed>
Tags
inheritDoc
throws
Exception
Return values
Generator<string|int, array<string|int, string>>

getSubmissionProofSummaryValue()

public getSubmissionProofSummaryValue(array<string|int, mixed>|null $submissionProofsSummaries, string $summaryLabel) : mixed
Parameters
$submissionProofsSummaries : array<string|int, mixed>|null
$summaryLabel : string

validateParams()

public static validateParams(array<string|int, mixed> $params) : void
Parameters
$params : array<string|int, mixed>

validatePositiveInteger()

public static validatePositiveInteger(mixed $value) : mixed
Parameters
$value : mixed

createFile()

protected createFile() : resource
Tags
throws
ErrorException
throws
Exception
Return values
resource

generateFile()

protected generateFile(resource $file, array<string|int, mixed> $parameters) : void
Parameters
$file : resource
$parameters : array<string|int, mixed>
Tags
throws
Exception

getCloudStorageComponent()

protected getCloudStorageComponent(string $bucket) : mixed
Parameters
$bucket : string

validateBool()

protected static validateBool(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

validateDate()

protected static validateDate(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

validateRequired()

protected static validateRequired(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

validateString()

protected static validateString(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

calculateDifferenceBetweenGrossValueAndNetValue()

private calculateDifferenceBetweenGrossValueAndNetValue(array<string|int, mixed> $summaries[, mixed $roundValue = false ][, mixed $roundEveryItem = true ]) : mixed
Parameters
$summaries : array<string|int, mixed>
$roundValue : mixed = false
$roundEveryItem : mixed = true

calculateECAVAT19()

private calculateECAVAT19(array<string|int, mixed> $summaries[, mixed $roundValue = false ][, mixed $roundEveryItem = true ][, mixed $summaryType = null ]) : string
Parameters
$summaries : array<string|int, mixed>
$roundValue : mixed = false
$roundEveryItem : mixed = true
$summaryType : mixed = null
Return values
string

calculateECAVAT7()

private calculateECAVAT7(array<string|int, mixed> $summaries[, mixed $roundValue = false ][, mixed $roundEveryItem = true ][, mixed $summaryType = null ]) : string
Parameters
$summaries : array<string|int, mixed>
$roundValue : mixed = false
$roundEveryItem : mixed = true
$summaryType : mixed = null
Return values
string

calculateGrossValue()

private calculateGrossValue(array<string|int, mixed> $summaries[, mixed $roundValue = false ][, mixed $roundEveryItem = true ]) : mixed
Parameters
$summaries : array<string|int, mixed>
$roundValue : mixed = false
$roundEveryItem : mixed = true

calculateL61ECA()

private calculateL61ECA(array<string|int, mixed> $summaries[, mixed $roundValue = false ][, mixed $roundEveryItem = true ][, mixed $summaryType = null ]) : string
Parameters
$summaries : array<string|int, mixed>
$roundValue : mixed = false
$roundEveryItem : mixed = true
$summaryType : mixed = null
Return values
string

calculateNetValue()

private calculateNetValue(array<string|int, mixed> $summaries[, mixed $roundValue = false ][, mixed $roundEveryItem = true ]) : mixed
Parameters
$summaries : array<string|int, mixed>
$roundValue : mixed = false
$roundEveryItem : mixed = true

calculatePayableTaxField()

private calculatePayableTaxField(string $payableTaxType[, bool $calculateTotal = false ]) : mixed
Parameters
$payableTaxType : string
$calculateTotal : bool = false

calculateVAT19()

private calculateVAT19(array<string|int, mixed> $summaries[, mixed $roundValue = false ][, mixed $roundEveryItem = true ][, mixed $summaryType = null ]) : string
Parameters
$summaries : array<string|int, mixed>
$roundValue : mixed = false
$roundEveryItem : mixed = true
$summaryType : mixed = null
Return values
string

calculateVAT7()

private calculateVAT7(array<string|int, mixed> $summaries[, mixed $roundValue = false ][, mixed $roundEveryItem = true ][, mixed $summaryType = null ]) : string
Parameters
$summaries : array<string|int, mixed>
$roundValue : mixed = false
$roundEveryItem : mixed = true
$summaryType : mixed = null
Return values
string

getDifferenceBetweenLatestReportVersionSubmittedLineValuesAndLatestPreliminaryReportLineValues()

private getDifferenceBetweenLatestReportVersionSubmittedLineValuesAndLatestPreliminaryReportLineValues(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getDifferenceBetweenSubmissionProofLineValuesAndLatestPreliminaryReportLineValues()

private getDifferenceBetweenSubmissionProofLineValuesAndLatestPreliminaryReportLineValues(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getDifferenceLineValuesArray()

private getDifferenceLineValuesArray(DateTime $date, int $totalDifferenceRowsTitlesIndex) : array<string|int, mixed>
Parameters
$date : DateTime
$totalDifferenceRowsTitlesIndex : int
Return values
array<string|int, mixed>

getEmptyRow()

private getEmptyRow(string $rowLabel, string $rowColor, DateTime $date) : array<string|int, mixed>
Parameters
$rowLabel : string
$rowColor : string
$date : DateTime
Return values
array<string|int, mixed>

getEntryReportsForPeriod()

private getEntryReportsForPeriod(DateTime $date, array<string|int, mixed> $includedPeriods) : mixed
Parameters
$date : DateTime
$includedPeriods : array<string|int, mixed>

getLatestPreliminaryReportLineValues()

private getLatestPreliminaryReportLineValues(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getLatestReportVersionSubmittedLineValues()

private getLatestReportVersionSubmittedLineValues(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getLineDifferenceBetweenTotalFiledAndTotalVJ()

private getLineDifferenceBetweenTotalFiledAndTotalVJ(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getLineDifferenceBetweenTotalVJAndTotalProofs()

private getLineDifferenceBetweenTotalVJAndTotalProofs(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getLinesValues()

private getLinesValues(DateTime $date, int $monthRow) : array<string|int, mixed>
Parameters
$date : DateTime
$monthRow : int
Return values
array<string|int, mixed>

getLineTotalFiled()

private getLineTotalFiled(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getLineTotalProofs()

private getLineTotalProofs(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getLineTotalVJ()

private getLineTotalVJ(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getPreliminaryReportsForPeriod()

private getPreliminaryReportsForPeriod() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getReportObligationPeriodMonthsDiff()

private getReportObligationPeriodMonthsDiff(DatePeriod $reportObligationPeriod) : mixed
Parameters
$reportObligationPeriod : DatePeriod

getReportsSummaries()

private getReportsSummaries(mixed $reportsForPeriod) : array<string|int, mixed>
Parameters
$reportsForPeriod : mixed
Return values
array<string|int, mixed>

getSubmissionProofLineValues()

private getSubmissionProofLineValues(DateTime $date) : array<string|int, mixed>
Parameters
$date : DateTime
Return values
array<string|int, mixed>

getSubmissionProofSummaries()

private getSubmissionProofSummaries(array<string|int, mixed> $entryReportsForPeriod) : array<string|int, mixed>
Parameters
$entryReportsForPeriod : array<string|int, mixed>
Return values
array<string|int, mixed>

getUserReportConfigurations()

Returns array combined of ReportIntention if exists, or an array of ReportObligation.

private getUserReportConfigurations(DateTime $startDate, DateTime $endDate) : array<string|int, mixed>
Parameters
$startDate : DateTime
$endDate : DateTime
Tags
throws
NonUniqueResultException
Return values
array<string|int, mixed>

validateEntryReportsForUserReportConfiguration()

private validateEntryReportsForUserReportConfiguration(mixed $userReportConfiguration, mixed $entryReportsForSelectedYearAndReportObligation, mixed $reportObligationPeriodMonthsDiff) : mixed
Parameters
$userReportConfiguration : mixed
$entryReportsForSelectedYearAndReportObligation : mixed
$reportObligationPeriodMonthsDiff : mixed
Tags
throws
Exception

validatePreliminaryReportsForUserReportConfiguration()

private validatePreliminaryReportsForUserReportConfiguration(mixed $userReportConfiguration, mixed $preliminaryReportsForSelectedYearAndReportObligation, mixed $reportObligationPeriodMonthsDiff) : mixed
Parameters
$userReportConfiguration : mixed
$preliminaryReportsForSelectedYearAndReportObligation : mixed
$reportObligationPeriodMonthsDiff : mixed
Tags
throws
Exception

        
On this page

Search results