{extends file=$smarty.const.SMARTY_LAYOUT_CONTENT_LIST_TABLE_CURRENT_DATA}

{block name="record-id"}{$rowFields['serviceCode']}##{$rowFields['location']}##{$rowFields['calculationType']}##{$rowFields['rowType']}##{$rowFields['clientType']}##{$rowFields['currency']}##{$rowFields['advanceInvoice']}##{$rowFields['field']}{/block}

{block name="listing-tr-class"}
	{if !\App\Config\ExportData_Fields::getInstance()->getFieldActive('clientInvoices', $rowFields['field'])}
		disabled
	{/if}
{/block}

{block name="listing-td-content-serviceCode"}
	{if $rowFields['serviceCode'] != '*'}
		{serviceTypeLabel ref=$rowFields['serviceCode']}
	{else}
		{$rowFields['serviceCode']}
	{/if}
{/block}

{block name="listing-td-content-location"}
	{if $rowFields['location'] != '*'}
		{$_LANG['locations']['countriesCriteria']['long'][$rowFields['location']]}
	{else}
		{$rowFields['location']}
	{/if}
{/block}

{block name="listing-td-content-calculationType"}
	{if $rowFields['calculationType'] != '*'}
		{\App\Config\Services_Calculations::getInstance()->getServiceLocationCalculationName($rowFields['serviceCode'], $rowFields['location'], $rowFields['calculationType'])}
	{else}
		{$rowFields['calculationType']}
	{/if}
{/block}

{block name="listing-td-content-rowType"}
	{if $rowFields['rowType'] != '*'}
		{$_LANG['rowType'][$rowFields['rowType']]}
	{else}
		{$rowFields['rowType']}
	{/if}
{/block}

{block name="listing-td-content-clientType"}
	{if $rowFields['clientType'] != '*'}
		{$lang['clientTypes'][$rowFields['clientType']]}
	{else}
		{$rowFields['clientType']}
	{/if}
{/block}

{block name="listing-td-content-advanceInvoice"}
	{if $rowFields['advanceInvoice'] != '*'}
		{if $rowFields['advanceInvoice']}{$_LANG['yes']}
		{else}{$_LANG['no']}
		{/if}
	{else}
		{$rowFields['advanceInvoice']}
	{/if}
{/block}

{block name="listing-td-content-field"}
	{\App\Config\ExportData_Fields::getInstance()->getFieldName('clientInvoices', $rowFields['field'])}
{/block}

