#LOCAL("ThresholdSalesVolume", #THRESHOLDSALESVOLUME(#Shop.Object)) #LOCAL("ThresholdLimit", #THRESHOLDLIMIT(#Shop)) #LOCAL("ThresholdSalesVolumePercent", #THRESHOLDSALESVOLUMEPERCENT(#ThresholdSalesVolume))
#IF(#FormError)
{PleaseCorrectErrors}
#ENDIF #IF(#INPUT.CreateNewMatrix) #IF(NOT #DeliveryThresholdIsActive)

{QuestionCustomizeMatrix}

{CreateNewMatrixInfo0}

{CreateNewMatrixInfo1}

{Notification}: {ShopTemporaryClosed}

#ENDIF #ELSIF(#INPUT.ResetTaxMatrix)

{QuestionResetTaxMatrix}

{TaxMatrixResetMessage}

{TaxMatrixResetEditOrderMessage}

{Notification}: {ShopTemporaryClosed}

#ENDIF #REM #ENDREM #IF(#TaxMatrix.Parent.ID == #Shop.ID AND NOT(#INPUT.ResetTaxMatrix)) #ELSIF(#INPUT.CreateNewMatrix) #ELSIF(#INPUT.ResetTaxMatrix) #ENDIF #IF(#Shop.TaxMethod)

{NoManualEditingOfTaxMatrix}

{ExternalTaxCalculationUsed}
#ELSE #IF(#Shop.Address.IsEU)

{InfoTextAboutUsedDeliveryThresholdAmount} {InfoTextAboutUsedDeliveryThresholdAmountLinkText}

#ENDIF #REM #ENDREM #REM #ENDREM #IF(#DeliveryThresholdIsActive) #LOOP(#AllCountryTaxClasses) #ENDLOOP #REM #ENDREM #IF(#COUNT(#TaxAreaEntries)) #LOOP(#TaxAreaEntries) #REM #ENDREM #IF(#COUNT(#TaxAreaClassEntries) > 0) #LOOP(#TaxAreaClassEntries) #ENDLOOP #REM #ENDREM #ELSE #ENDIF #REM #ENDREM #IF(#COUNT(#TaxAreaCountries) > 0) #LOOP(#TaxAreaCountries) #LOOP(#TaxClassEntries) #ENDLOOP #REM #ENDREM #ENDLOOP #REM #ENDREM #ENDIF #REM #ENDREM #ENDLOOP #REM #ENDREM #ELSE #ENDIF #REM #ENDREM
{TaxAreas}/{TaxClasses} {TaxClasses}
#NameOrAlias#IF(#IsDefault){DefaultMark}#ENDIF
#IF(#COUNT(#TaxAreaCountries) > 0) #ENDIF #REM #ENDREM #NameOrAlias#IF(#IsDefault){DefaultMark}#ENDIF #IF(NOT #TaxRate) - #ELSE #TaxRate[float] % #ENDIF
#Native (#English) #IF(NOT #TaxRate) - #ELSE #TaxRate[float] % #ENDIF
{TaxMatrixIsEmpty}
#REM #ENDREM #ELSE #LOOP(#TaxClasses) #ENDLOOP #IF(#COUNT(#TaxClasses) AND #COUNT(#TaxAreas)) #LOCAL("ShopID",#Shop.ID) #LOOP(#TaxAreas) #LOOP(#TaxClasses) #BLOCK("WITH_FORM_ERROR",#FormError) #ENDBLOCK #REM #ENDREM #ENDLOOP #REM #ENDREM #ENDLOOP #REM #ENDREM #ENDLOCAL #REM #ENDREM #ELSE #ENDIF
{TaxAreas}/{TaxClasses} {TaxClasses}
#NameOrAlias#IF(#IsDefault){DefaultMark}#ENDIF
#NameOrAlias#IF(#IsDefault){DefaultMark}#ENDIF
#IF(#TaxMatrix.Parent.ID NEQ #ShopID)
%
#ELSE
#TaxRate[float] %
#ENDIF #REM #ENDREM
{TaxMatrixIsEmpty}
#ENDIF #REM #ENDREM

{DefaultMarkExplanation}

#IF(#DeliveryThresholdIsActive)

{DeliveryThresholdIsActiveAdditionalInfo} {DeliveryThresholdIsActiveAdditionalInfoLink}

#ELSE #IF(#COUNT(#TaxClasses) AND #COUNT(#TaxAreas) OR #COUNT(#TaxAreaEntries)) #IF(#TaxMatrix.Parent.ID NEQ #Shop.ID AND NOT(#INPUT.ResetTaxMatrix)) #ELSIF(#INPUT.ResetTaxMatrix) #ELSIF(#INPUT.CreateNewMatrix) #ELSE #ENDIF #ENDIF #ENDIF
#ENDIF
#ENDLOCAL #REM #ENDREM #ENDLOCAL #REM #ENDREM #ENDLOCAL #REM #ENDREM