<?php
global $runnerTableSettings;
$runnerTableSettings['customer_payment_application'] = array(
	'name' => 'customer_payment_application',
	'shortName' => 'customer_payment_application',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditDetails' => 'customer_payment_application',
	'afterAddDetail' => 'customer_payment_application',
	'detailsBadgeColor' => '000',
	'sql' => 'SELECT
	id,
	payment_application_uuid,
	customer_payment_id,
	sales_id,
	applied_amount,
	discount_taken_amount,
	withholding_applied_amount,
	applied_at
FROM
	customer_payment_application',
	'keyFields' => array( 
		'id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'id' => array(
			'name' => 'id',
			'goodName' => 'id',
			'strField' => 'id',
			'index' => 1,
			'type' => 20,
			'autoinc' => true,
			'sqlExpression' => 'id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'customer_payment_application' 
		),
		'payment_application_uuid' => array(
			'name' => 'payment_application_uuid',
			'goodName' => 'payment_application_uuid',
			'strField' => 'payment_application_uuid',
			'index' => 2,
			'sqlExpression' => 'payment_application_uuid',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'customer_payment_application' 
		),
		'customer_payment_id' => array(
			'name' => 'customer_payment_id',
			'goodName' => 'customer_payment_id',
			'strField' => 'customer_payment_id',
			'index' => 3,
			'type' => 20,
			'sqlExpression' => 'customer_payment_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'customer_payment_application',
			'viewLinkTable' => 'customer_payment',
			'viewLinkLookup' => false 
		),
		'sales_id' => array(
			'name' => 'sales_id',
			'goodName' => 'sales_id',
			'strField' => 'sales_id',
			'index' => 4,
			'type' => 20,
			'sqlExpression' => 'sales_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'sales',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'document_no',
					'lookupOrderBy' => 'document_no',
					'lookupAutofillEdit' => true,
					'lookupAutofillFields' => array( 
						array(
							'masterField' => 'withholding_applied_amount',
							'lookupField' => 'withholding_amount' 
						),
						array(
							'masterField' => 'applied_amount',
							'lookupField' => 'grand_total_amount' 
						) 
					) 
				) 
			),
			'tableName' => 'customer_payment_application',
			'viewLinkTable' => 'sales',
			'viewLinkLookup' => true 
		),
		'applied_amount' => array(
			'name' => 'applied_amount',
			'goodName' => 'applied_amount',
			'strField' => 'applied_amount',
			'index' => 5,
			'type' => 14,
			'sqlExpression' => 'applied_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'customer_payment_application' 
		),
		'discount_taken_amount' => array(
			'name' => 'discount_taken_amount',
			'goodName' => 'discount_taken_amount',
			'strField' => 'discount_taken_amount',
			'index' => 6,
			'type' => 14,
			'sqlExpression' => 'discount_taken_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'defaultValue' => '0' 
				) 
			),
			'tableName' => 'customer_payment_application' 
		),
		'withholding_applied_amount' => array(
			'name' => 'withholding_applied_amount',
			'goodName' => 'withholding_applied_amount',
			'strField' => 'withholding_applied_amount',
			'index' => 7,
			'type' => 14,
			'sqlExpression' => 'withholding_applied_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'defaultValue' => '0' 
				) 
			),
			'tableName' => 'customer_payment_application' 
		),
		'applied_at' => array(
			'name' => 'applied_at',
			'goodName' => 'applied_at',
			'strField' => 'applied_at',
			'index' => 8,
			'type' => 135,
			'sqlExpression' => 'applied_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'customer_payment_application' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'customer_payment',
			'detailsKeys' => array( 
				'customer_payment_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	payment_application_uuid,
	customer_payment_id,
	sales_id,
	applied_amount,
	discount_taken_amount,
	withholding_applied_amount,
	applied_at
FROM
	customer_payment_application',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'customer_payment_application',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'payment_application_uuid',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'customer_payment_application',
					'name' => 'payment_application_uuid' 
				),
				'encrypted' => false,
				'columnName' => 'payment_application_uuid' 
			),
			array(
				'sql' => 'customer_payment_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'customer_payment_application',
					'name' => 'customer_payment_id' 
				),
				'encrypted' => false,
				'columnName' => 'customer_payment_id' 
			),
			array(
				'sql' => 'sales_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'customer_payment_application',
					'name' => 'sales_id' 
				),
				'encrypted' => false,
				'columnName' => 'sales_id' 
			),
			array(
				'sql' => 'applied_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'customer_payment_application',
					'name' => 'applied_amount' 
				),
				'encrypted' => false,
				'columnName' => 'applied_amount' 
			),
			array(
				'sql' => 'discount_taken_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'customer_payment_application',
					'name' => 'discount_taken_amount' 
				),
				'encrypted' => false,
				'columnName' => 'discount_taken_amount' 
			),
			array(
				'sql' => 'withholding_applied_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'customer_payment_application',
					'name' => 'withholding_applied_amount' 
				),
				'encrypted' => false,
				'columnName' => 'withholding_applied_amount' 
			),
			array(
				'sql' => 'applied_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'customer_payment_application',
					'name' => 'applied_at' 
				),
				'encrypted' => false,
				'columnName' => 'applied_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'customer_payment_application',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'customer_payment_application',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'payment_application_uuid',
						'customer_payment_id',
						'sales_id',
						'applied_amount',
						'discount_taken_amount',
						'withholding_applied_amount',
						'applied_at' 
					),
					'name' => 'customer_payment_application' 
				),
				'joinOn' => array(
					'sql' => '',
					'parsed' => false,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => null 
				),
				'joinList' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'JoinOn',
					'field1' => array( 
						 
					),
					'field2' => array( 
						 
					) 
				),
				'link' => 0 
			) 
		),
		'where' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'groupBy' => array( 
			 
		),
		'having' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'orderBy' => array( 
			 
		),
		'colsIndex' => array( 
			array(
				'fieldIndex' => 0,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 1,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 2,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 3,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 4,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 5,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 6,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 7,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	payment_application_uuid,
	customer_payment_id,
	sales_id,
	applied_amount,
	discount_taken_amount,
	withholding_applied_amount,
	applied_at',
		'fromListSql' => 'FROM
	customer_payment_application',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'originalTable' => 'customer_payment_application',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'id',
			'payment_application_uuid',
			'customer_payment_id',
			'sales_id',
			'applied_amount',
			'discount_taken_amount',
			'withholding_applied_amount',
			'applied_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'payment_application_uuid',
			'customer_payment_id',
			'sales_id',
			'applied_amount',
			'discount_taken_amount',
			'withholding_applied_amount',
			'applied_at' 
		) 
	),
	'connId' => 'conn',
	'clickActions' => array(
		'row' => array(
			'action' => 'noaction' 
		),
		'fields' => array(
			 
		) 
	),
	'geoCoding' => array(
		'enabled' => false,
		'latField' => '',
		'lonField' => '',
		'addressFields' => array( 
			 
		) 
	),
	'whereTabs' => array( 
		 
	),
	'labels' => array(
		 
	),
	'chartSettings' => array(
		 
	),
	'dataSourceOperations' => array(
		 
	),
	'calendarSettings' => array(
		'categoryColors' => array( 
			 
		) 
	),
	'ganttSettings' => array(
		'categoryColors' => array( 
			 
		) 
	) 
);

global $runnerTableLabels;
if( mlang_getcurrentlang() === 'English' ) {
	$runnerTableLabels['customer_payment_application'] = array(
	'tableCaption' => 'Customer Payment Application',
	'fieldLabels' => array(
		'id' => 'Id',
		'payment_application_uuid' => 'Payment Application Uuid',
		'customer_payment_id' => 'Customer Payment Id',
		'sales_id' => 'Sales Invoice',
		'applied_amount' => 'Applied Amount',
		'discount_taken_amount' => 'Discount Taken Amount',
		'withholding_applied_amount' => 'Withholding Applied Amount',
		'applied_at' => 'Applied At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'payment_application_uuid' => '',
		'customer_payment_id' => '',
		'sales_id' => '',
		'applied_amount' => '',
		'discount_taken_amount' => '',
		'withholding_applied_amount' => '',
		'applied_at' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'payment_application_uuid' => '',
		'customer_payment_id' => '',
		'sales_id' => '',
		'applied_amount' => '',
		'discount_taken_amount' => '',
		'withholding_applied_amount' => '',
		'applied_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>