<?php
/*
 * Invoice Cashings Table
 */
$CFG['DTM']['specialObjectsDefinitions']['InvoiceCashingsTable']= [
	# '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'],
			'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',
					'docType'=>'docType',
					'docSeriesAndNumber'=>'docSeriesAndNumber',
					'docDate'=>'docDate',
					'docValDocCurr'=>'docValDocCurr',
					'docValInvCurr'=>'docValInvCurr',
					'docValDefCurr'=>'docValDefCurr',
				],
				'extra'=> [
					'type'=>'checkbox',
					'name'=>'visibleColumns', // the attribute name to use
					'default'=>'currentNumber|docType|docSeriesAndNumber|docDate',
				],
				'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
			'separator01'=>				['type'=>'separator','text'=>'currentNumber'],
			'column_currentNumberFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
			'column_currentNumberTextStyle'=>	['type'=>'textStyle', 'default'=>"bold"],
			'column_currentNumberFontSize'=>	['type'=>'fontSize', 'default'=>"12"],
			'column_currentNumberTextColor'=>	['type'=>'color', 'default'=>"#000000"],
			'column_currentNumberBackgroundColor'=> ['type'=>'color', 'default'=>""],
			'column_currentNumberWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"20"],
			'column_currentNumberText'=>		['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['InvoiceCashingsTable']['columns_names']['currentNumber']],
			'column_currentNumberAlignment'=>	['type'=>'alignment','default'=>"left"],
			'column_currentNumberVerticalAlignment'=>	['type'=>'verticalAlignment','default'=>"top"],


			'separator1'=>							['type'=>'separator','text'=>'docType'],
			'column_docTypeFont'=>				['type'=>'fontFamily', 'default'=>"Times"],
			'column_docTypeTextStyle'=>		['type'=>'textStyle', 'default'=>"bold"],
			'column_docTypeFontSize'=>			['type'=>'fontSize', 'default'=>"12"],
			'column_docTypeTextColor'=>		['type'=>'color', 'default'=>"#000000"],
			'column_docTypeBackgroundColor'=>	['type'=>'color', 'default'=>""],
			'column_docTypeWidth'=>			['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"20"],
			'column_docTypeText'=>				['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['InvoiceCashingsTable']['columns_names']['docType']],
			'column_docTypeAlignment'=>		['type'=>'alignment','default'=>"left"],
			'column_docTypeVerticalAlignment'=> ['type'=>'verticalAlignment','default'=>"top"],

			'separator2'=>										['type'=>'separator','text'=>'docSeriesAndNumber'],
			'column_docSeriesAndNumberFont'=>				['type'=>'fontFamily', 'default'=>"Times"],
			'column_docSeriesAndNumberTextStyle'=>			['type'=>'textStyle', 'default'=>"bold"],
			'column_docSeriesAndNumberFontSize'=>			['type'=>'fontSize', 'default'=>"12"],
			'column_docSeriesAndNumberTextColor'=>			['type'=>'color', 'default'=>"#000000"],
			'column_docSeriesAndNumberBackgroundColor'=>	['type'=>'color', 'default'=>""],
			'column_docSeriesAndNumberWidth'=>				['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"20"],
			'column_docSeriesAndNumberText'=>				['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['InvoiceCashingsTable']['columns_names']['docSeriesAndNumber']],
			'column_docSeriesAndNumberAlignment'=>			['type'=>'alignment','default'=>"left"],
			'column_docSeriesAndNumberVerticalAlignment'=>	['type'=>'verticalAlignment','default'=>"top"],

			'separator25'=>				['type'=>'separator','text'=>'docDate'],
			'column_docDateFont'=>		['type'=>'fontFamily', 'default'=>"Times"],
			'column_docDateTextStyle'=>	['type'=>'textStyle', 'default'=>"bold"],
			'column_docDateFontSize'=>	['type'=>'fontSize', 'default'=>"12"],
			'column_docDateTextColor'=>	['type'=>'color', 'default'=>"#000000"],
			'column_docDateBackgroundColor'=> ['type'=>'color', 'default'=>""],
			'column_docDateWidth'=>		['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"20"],
			'column_docDateText'=>		['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['InvoiceCashingsTable']['columns_names']['docDate']],
			'column_docDateAlignment'=>	['type'=>'alignment','default'=>"left"],
			'column_docDateVerticalAlignment'=>	['type'=>'verticalAlignment','default'=>"top"],

			'separator3'=>										['type'=>'separator','text'=>'docValDocCurr'],
			'column_docValDocCurrFont'=>				['type'=>'fontFamily', 'default'=>"Times"],
			'column_docValDocCurrTextStyle'=>			['type'=>'textStyle', 'default'=>"bold"],
			'column_docValDocCurrFontSize'=>			['type'=>'fontSize', 'default'=>"12"],
			'column_docValDocCurrTextColor'=>			['type'=>'color', 'default'=>"#000000"],
			'column_docValDocCurrBackgroundColor'=>	['type'=>'color', 'default'=>""],
			'column_docValDocCurrWidth'=>				['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"20"],
			'column_docValDocCurrText'=>				['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['InvoiceCashingsTable']['columns_names']['docValDocCurr']],
			'column_docValDocCurrAlignment'=>			['type'=>'alignment','default'=>"left"],
			'column_docValDocCurrVerticalAlignment'=>	['type'=>'verticalAlignment','default'=>"top"],

			'separator4'=>										['type'=>'separator','text'=>'docValInvCurr'],
			'column_docValInvCurrFont'=>				['type'=>'fontFamily', 'default'=>"Times"],
			'column_docValInvCurrTextStyle'=>			['type'=>'textStyle', 'default'=>"bold"],
			'column_docValInvCurrFontSize'=>			['type'=>'fontSize', 'default'=>"12"],
			'column_docValInvCurrTextColor'=>			['type'=>'color', 'default'=>"#000000"],
			'column_docValInvCurrBackgroundColor'=>	['type'=>'color', 'default'=>""],
			'column_docValInvCurrWidth'=>				['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"20"],
			'column_docValInvCurrText'=>				['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['InvoiceCashingsTable']['columns_names']['docValInvCurr']],
			'column_docValInvCurrAlignment'=>			['type'=>'alignment','default'=>"left"],
			'column_docValInvCurrVerticalAlignment'=>	['type'=>'verticalAlignment','default'=>"top"],

			'separator5'=>										['type'=>'separator','text'=>'docValDefCurr'],
			'column_docValDefCurrFont'=>				['type'=>'fontFamily', 'default'=>"Times"],
			'column_docValDefCurrTextStyle'=>			['type'=>'textStyle', 'default'=>"bold"],
			'column_docValDefCurrFontSize'=>			['type'=>'fontSize', 'default'=>"12"],
			'column_docValDefCurrTextColor'=>			['type'=>'color', 'default'=>"#000000"],
			'column_docValDefCurrBackgroundColor'=>	['type'=>'color', 'default'=>""],
			'column_docValDefCurrWidth'=>				['type'=>'int',	'validations'=> ['min'=>1,'max'=>150],	'default'=>"20"],
			'column_docValDefCurrText'=>				['type'=>'text',	'default'=>$_LANG['DTM']['controls']['specialObjects']['InvoiceCashingsTable']['columns_names']['docValDefCurr']],
			'column_docValDefCurrAlignment'=>			['type'=>'alignment','default'=>"left"],
			'column_docValDefCurrVerticalAlignment'=>	['type'=>'verticalAlignment','default'=>"top"],

		],
	],

];
