<?php
/*
 * invoice annex object
 */
$CFG['DTM']['specialObjectsDefinitions']['InvoiceServiceItineraryTable']= [
		# 'maxInstances'=>1,
		'forceBlock'=>true,		// force this element to be rendered as a block element. FOP seems to have a problem with rendering inline absolute tables...
		'image'=>'',			// force this element to be rendered as a block element. FOP seems to have a problem with rendering inline absolute tables...

		'fieldset_border'=> [ // fieldset code
			'hidden'=>false,			// hide the content of this div by default(can be toggle by the user if "displayFieldset" is true)
			'displayFieldset'=>true,	// display the fieldset( the border and the toggle button)
			'attributes'=> [ // fields
				'borderStyle'=>			['type'=>'lineStyle',	'default'=>'none'],
				'borderColor'=>			['type'=>'color',	'default'=>'#000000'],
				'borderThickness'=>		['type'=>'selector','list'=> ['0.1'=>'0.10',	'0.25'=>'0.25',	'0.5'=>'0.50',	'0.75'=>'0.75',	'1'=>'1.00',	'1.5'=>'1.50',	'2'=>'2.00',	'4'=>'4.00'],'default'=>'1.00'],
				'separator001'=>		['type'=>'separator'],
				'borderVisibility'=>	['type'=>'4borders',	'default'=>'top|bottom|left|right'],
			],
		],

		'fieldset_sortColumns'=> [ // fieldset code
			'hidden'=>true,			// hide the content of this div by default(can be toggle by the user if "displayFieldset" is true)
			'displayFieldset'=>true,	// display the fieldset( the border and the toggle button)
			'attributes'=> [ // fields
				'sort'=>		['type'=>'sortable2',
										'list'=> [
												'currentNumber'=>'currentNumber',
												'departureCountryCity'=>'departureCountryCity',
												'departureAirport'=>'departureAirport',
												'departureDateTime'=>'departureDateTime',
												'arrivalCountryCity'=>'arrivalCountryCity',
												'arrivalAirport'=>'arrivalAirport',
												'arrivalDateTime'=>'arrivalDateTime',
												'supplier'=>'supplier',
												'duration'=>'duration',
												'distance'=>'distance',
												'transportNumber'=>'transportNumber',
										],
										'extra'=> [
											'type'=>'checkbox',
											'name'=>'visibleColumns', // the attribute name to use
											'default'=>'currentNumber|departureCountryCity|departureAirport|departureDateTime|arrivalCountryCity|arrivalAirport|arrivalDateTime|supplier|duration|distance|transportNumber',
										],
										'style'=>'multiline'],
			],
		],

		'fieldset_header'=> [ // fieldset code
			'hidden'=>true,			// hide the content of this div by default(can be toggle by the user if "displayFieldset" is true)
			'displayFieldset'=>true,	// display the fieldset( the border and the toggle button)
			'attributes'=> [ // fields
				'headerFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
				'headerTextStyle'=>	['type'=>'textStyle', 'default'=>"bold"],
				'headerFontSize'=>	['type'=>'fontSize', 'default'=>"12"],
				'headerTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'headerBackgroundColor'=> ['type'=>'color', 'default'=>""],
			],
		],

		'fieldset_columns'=> [ // fieldset code
			'hidden'=>true,			// hide the content of this div by default(can be toggle by the user if "displayFieldset" is true)
			'displayFieldset'=>true,	// display the fieldset( the border and the toggle button)
			'attributes'=> [ // fields
				'separator1'=>						['type'=>'separator','text'=>'currentNumber', 'ID'=>'currentNumber'],
				'column_currentNumberFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
				'column_currentNumberTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_currentNumberFontSize'=>	['type'=>'fontSize', 'default'=>"10"],
				'column_currentNumberTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_currentNumberBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_currentNumberWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"10"],
				'column_currentNumberText'=>		['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['currentNumber']],
				'column_currentNumberAlignment'=>	['type'=>'alignment','default'=>"left"],

				'separator2'=>							['type'=>'separator','text'=>'departureCountryCity', 'ID'=>'departureCountryCity'],
				'column_departureCountryCityFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
				'column_departureCountryCityTextStyle'=> ['type'=>'textStyle', 'default'=>""],
				'column_departureCountryCityFontSize'=>	['type'=>'fontSize', 'default'=>"10"],
				'column_departureCountryCityTextColor'=> ['type'=>'color', 'default'=>"#000000"],
				'column_departureCountryCityBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_departureCountryCityWidth'=>	['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"50"],
				'column_departureCountryCityText'=>		['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['departureCountryCity']],
				'column_departureCountryCityAlignment'=> ['type'=>'alignment','default'=>"left"],

				'separator3'=>							['type'=>'separator','text'=>'departureAirport', 'ID'=>'departureAirport'],
				'column_departureAirportFont'=>			['type'=>'fontFamily', 'default'=>"Times"],
				'column_departureAirportTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_departureAirportFontSize'=>		['type'=>'fontSize', 'default'=>"10"],
				'column_departureAirportTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_departureAirportBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_departureAirportWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"30"],
				'column_departureAirportText'=>			['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['departureAirport']],
				'column_departureAirportAlignment'=>	['type'=>'alignment','default'=>"left"],

				'separator4'=>							['type'=>'separator','text'=>'departureDateTime', 'ID'=>'departureDateTime'],
				'column_departureDateTimeFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
				'column_departureDateTimeTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_departureDateTimeFontSize'=>	['type'=>'fontSize', 'default'=>"10"],
				'column_departureDateTimeTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_departureDateTimeBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_departureDateTimeWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"35"],
				'column_departureDateTimeText'=>		['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['departureDateTime']],
				'column_departureDateTimeAlignment'=>	['type'=>'alignment','default'=>"left"],

				'separator5'=>							['type'=>'separator','text'=>'arrivalCountryCity', 'ID'=>'arrivalCountryCity'],
				'column_arrivalCountryCityFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
				'column_arrivalCountryCityTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_arrivalCountryCityFontSize'=>	['type'=>'fontSize', 'default'=>"10"],
				'column_arrivalCountryCityTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_arrivalCountryCityBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_arrivalCountryCityWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"50"],
				'column_arrivalCountryCityText'=>		['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['arrivalCountryCity']],
				'column_arrivalCountryCityAlignment'=>	['type'=>'alignment','default'=>"left"],

				'separator6'=>						['type'=>'separator','text'=>'arrivalAirport', 'ID'=>'arrivalAirport'],
				'column_arrivalAirportFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
				'column_arrivalAirportTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_arrivalAirportFontSize'=>	['type'=>'fontSize', 'default'=>"10"],
				'column_arrivalAirportTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_arrivalAirportBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_arrivalAirportWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"30"],
				'column_arrivalAirportText'=>		['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['arrivalAirport']],
				'column_arrivalAirportAlignment'=>	['type'=>'alignment','default'=>"left"],

				'separator7'=>						['type'=>'separator','text'=>'arrivalDateTime', 'ID'=>'arrivalDateTime'],
				'column_arrivalDateTimeFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
				'column_arrivalDateTimeTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_arrivalDateTimeFontSize'=>	['type'=>'fontSize', 'default'=>"10"],
				'column_arrivalDateTimeTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_arrivalDateTimeBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_arrivalDateTimeWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"35"],
				'column_arrivalDateTimeText'=>		['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['arrivalDateTime']],
				'column_arrivalDateTimeAlignment'=>	['type'=>'alignment','default'=>"left"],

				'separator8'=>					['type'=>'separator','text'=>'supplier', 'ID'=>'supplier'],
				'column_supplierFont'=>			['type'=>'fontFamily', 'default'=>"Times"],
				'column_supplierTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_supplierFontSize'=>		['type'=>'fontSize', 'default'=>"10"],
				'column_supplierTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_supplierBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_supplierWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"30"],
				'column_supplierText'=>			['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['supplier']],
				'column_supplierAlignment'=>	['type'=>'alignment','default'=>"left"],

				'separator9'=>					['type'=>'separator','text'=>'duration', 'ID'=>'duration'],
				'column_durationFont'=>			['type'=>'fontFamily', 'default'=>"Times"],
				'column_durationTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_durationFontSize'=>		['type'=>'fontSize', 'default'=>"10"],
				'column_durationTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_durationBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_durationWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"20"],
				'column_durationText'=>			['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['duration']],
				'column_durationAlignment'=>	['type'=>'alignment','default'=>"right"],

				'separator10'=>					['type'=>'separator','text'=>'distance', 'ID'=>'distance'],
				'column_distanceFont'=>			['type'=>'fontFamily', 'default'=>"Times"],
				'column_distanceTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_distanceFontSize'=>		['type'=>'fontSize', 'default'=>"10"],
				'column_distanceTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_distanceBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_distanceWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"10"],
				'column_distanceText'=>			['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['distance']],
				'column_distanceAlignment'=>	['type'=>'alignment','default'=>"right"],

				'separator11'=>						['type'=>'separator','text'=>'transportNumber', 'ID'=>'transportNumber'],
				'column_transportNumberFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
				'column_transportNumberTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_transportNumberFontSize'=>	['type'=>'fontSize', 'default'=>"10"],
				'column_transportNumberTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_transportNumberBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_transportNumberWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"30"],
				'column_transportNumberText'=>		['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['transportNumber']],
				'column_transportNumberAlignment'=>	['type'=>'alignment','default'=>"left"],

				'separator12'=>						['type'=>'separator','text'=>'separatorRow', 'ID'=>'separatorRow'],
				'column_separatorRowFont'=>			['type'=>'fontFamily', 'default'=>"Times"],
				'column_separatorRowTextStyle'=>	['type'=>'textStyle', 'default'=>""],
				'column_separatorRowFontSize'=>		['type'=>'fontSize', 'default'=>"10"],
				'column_separatorRowTextColor'=>	['type'=>'color', 'default'=>"#000000"],
				'column_separatorRowBackgroundColor'=> ['type'=>'color', 'default'=>""],
				'column_separatorRowText'=>			['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['ServiceItineraryTable']['columns_names']['separatorRow']],
				'column_separatorRowAlignment'=>	['type'=>'alignment','default'=>"left"],
			],
		],
];

?>