Documentation

GermanYearlyFilingExportCalculatorTrait

Table of Contents

Properties

$difference  : mixed
$differencePayableTaxField  : mixed
$differenceSubmission  : mixed
$fields  : mixed
$preliminary  : mixed
$preliminaryPayableTaxField  : mixed
$submissionProof  : mixed
$submissionProofPayableTaxField  : mixed
$submissionProofTotal  : mixed
$totalDifferenceRowsTitles  : mixed
$totalFiled  : mixed
$totalFiledPayableTaxField  : mixed
$versioned  : mixed
$versionedPayableTaxField  : mixed

Methods

calculateAll()  : mixed
calculateAllDifferences()  : mixed
calculateDifferenceBetweenFields()  : string
customRound()  : mixed
filterSummaries()  : array<string|int, mixed>
getSubmissionProofSummaryValue()  : mixed
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
convertToNumber()  : float

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

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

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>

getSubmissionProofSummaryValue()

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

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

        
On this page

Search results